/* * MIT License * * Copyright (c) 2023 OrdinaryRoad * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: dm_v2.proto package tech.ordinaryroad.live.chat.client.bilibili.protobuf; /** * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2} */ public final class dm_v2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) dm_v2OrBuilder { private static final long serialVersionUID = 0L; // Use dm_v2.newBuilder() to construct. private dm_v2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private dm_v2() { } @Override @SuppressWarnings({"unused"}) protected Object newInstance( UnusedPrivateParameter unused) { return new dm_v2(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable .ensureFieldAccessorsInitialized( dm_v2.class, Builder.class); } public static final int DM_V2_20_FIELD_NUMBER = 20; private dm_v2_20 dmV220_; /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; * @return Whether the dmV220 field is set. */ @Override public boolean hasDmV220() { return dmV220_ != null; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; * @return The dmV220. */ @Override public dm_v2_20 getDmV220() { return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ @Override public dm_v2_20OrBuilder getDmV220OrBuilder() { return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; } private byte memoizedIsInitialized = -1; @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dmV220_ != null) { output.writeMessage(20, getDmV220()); } getUnknownFields().writeTo(output); } @Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dmV220_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getDmV220()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof dm_v2)) { return super.equals(obj); } dm_v2 other = (dm_v2) obj; if (hasDmV220() != other.hasDmV220()) return false; if (hasDmV220()) { if (!getDmV220() .equals(other.getDmV220())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDmV220()) { hash = (37 * hash) + DM_V2_20_FIELD_NUMBER; hash = (53 * hash) + getDmV220().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static dm_v2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dm_v2 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dm_v2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dm_v2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dm_v2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static dm_v2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static dm_v2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dm_v2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static dm_v2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static dm_v2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static dm_v2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static dm_v2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(dm_v2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) dm_v2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable .ensureFieldAccessorsInitialized( dm_v2.class, Builder.class); } // Construct using tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2.newBuilder() private Builder() { } private Builder( BuilderParent parent) { super(parent); } @Override public Builder clear() { super.clear(); bitField0_ = 0; dmV220_ = null; if (dmV220Builder_ != null) { dmV220Builder_.dispose(); dmV220Builder_ = null; } return this; } @Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; } @Override public dm_v2 getDefaultInstanceForType() { return dm_v2.getDefaultInstance(); } @Override public dm_v2 build() { dm_v2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @Override public dm_v2 buildPartial() { dm_v2 result = new dm_v2(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(dm_v2 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dmV220_ = dmV220Builder_ == null ? dmV220_ : dmV220Builder_.build(); } } @Override public Builder clone() { return super.clone(); } @Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.setField(field, value); } @Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return super.setRepeatedField(field, index, value); } @Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return super.addRepeatedField(field, value); } @Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof dm_v2) { return mergeFrom((dm_v2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(dm_v2 other) { if (other == dm_v2.getDefaultInstance()) return this; if (other.hasDmV220()) { mergeDmV220(other.getDmV220()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @Override public final boolean isInitialized() { return true; } @Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 162: { input.readMessage( getDmV220FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private dm_v2_20 dmV220_; private com.google.protobuf.SingleFieldBuilderV3< dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder> dmV220Builder_; /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; * @return Whether the dmV220 field is set. */ public boolean hasDmV220() { return ((bitField0_ & 0x00000001) != 0); } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; * @return The dmV220. */ public dm_v2_20 getDmV220() { if (dmV220Builder_ == null) { return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; } else { return dmV220Builder_.getMessage(); } } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public Builder setDmV220(dm_v2_20 value) { if (dmV220Builder_ == null) { if (value == null) { throw new NullPointerException(); } dmV220_ = value; } else { dmV220Builder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public Builder setDmV220( dm_v2_20.Builder builderForValue) { if (dmV220Builder_ == null) { dmV220_ = builderForValue.build(); } else { dmV220Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public Builder mergeDmV220(dm_v2_20 value) { if (dmV220Builder_ == null) { if (((bitField0_ & 0x00000001) != 0) && dmV220_ != null && dmV220_ != dm_v2_20.getDefaultInstance()) { getDmV220Builder().mergeFrom(value); } else { dmV220_ = value; } } else { dmV220Builder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public Builder clearDmV220() { bitField0_ = (bitField0_ & ~0x00000001); dmV220_ = null; if (dmV220Builder_ != null) { dmV220Builder_.dispose(); dmV220Builder_ = null; } onChanged(); return this; } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public dm_v2_20.Builder getDmV220Builder() { bitField0_ |= 0x00000001; onChanged(); return getDmV220FieldBuilder().getBuilder(); } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ public dm_v2_20OrBuilder getDmV220OrBuilder() { if (dmV220Builder_ != null) { return dmV220Builder_.getMessageOrBuilder(); } else { return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; } } /** * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; */ private com.google.protobuf.SingleFieldBuilderV3< dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder> getDmV220FieldBuilder() { if (dmV220Builder_ == null) { dmV220Builder_ = new com.google.protobuf.SingleFieldBuilderV3< dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder>( getDmV220(), getParentForChildren(), isClean()); dmV220_ = null; } return dmV220Builder_; } @Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) } // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) private static final dm_v2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new dm_v2(); } public static dm_v2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @Override public dm_v2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @Override public dm_v2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }