// Generated by the protocol buffer compiler. DO NOT EDIT! // source: AvatarLifeStateChangeNotify.proto package emu.grasscutter.net.proto; public final class AvatarLifeStateChangeNotifyOuterClass { private AvatarLifeStateChangeNotifyOuterClass() {} 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 AvatarLifeStateChangeNotifyOrBuilder extends // @@protoc_insertion_point(interface_extends:AvatarLifeStateChangeNotify) com.google.protobuf.MessageOrBuilder { /** * uint32 life_state = 13; * @return The lifeState. */ int getLifeState(); /** * string attack_tag = 10; * @return The attackTag. */ java.lang.String getAttackTag(); /** * string attack_tag = 10; * @return The bytes for attackTag. */ com.google.protobuf.ByteString getAttackTagBytes(); /** * .PlayerDieType die_type = 2; * @return The enum numeric value on the wire for dieType. */ int getDieTypeValue(); /** * .PlayerDieType die_type = 2; * @return The dieType. */ emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); /** * repeated .ServerBuff server_buff_list = 12; */ java.util.List getServerBuffListList(); /** * repeated .ServerBuff server_buff_list = 12; */ emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); /** * repeated .ServerBuff server_buff_list = 12; */ int getServerBuffListCount(); /** * repeated .ServerBuff server_buff_list = 12; */ java.util.List getServerBuffListOrBuilderList(); /** * repeated .ServerBuff server_buff_list = 12; */ emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( int index); /** * uint32 move_reliable_seq = 5; * @return The moveReliableSeq. */ int getMoveReliableSeq(); /** * uint32 source_entity_id = 3; * @return The sourceEntityId. */ int getSourceEntityId(); /** * uint64 avatar_guid = 11; * @return The avatarGuid. */ long getAvatarGuid(); } /** *
   * CmdId: 1290
   * EnetChannelId: 0
   * EnetIsReliable: false
   * IsAllowClient: true
   * 
* * Protobuf type {@code AvatarLifeStateChangeNotify} */ public static final class AvatarLifeStateChangeNotify extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:AvatarLifeStateChangeNotify) AvatarLifeStateChangeNotifyOrBuilder { private static final long serialVersionUID = 0L; // Use AvatarLifeStateChangeNotify.newBuilder() to construct. private AvatarLifeStateChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AvatarLifeStateChangeNotify() { attackTag_ = ""; dieType_ = 0; serverBuffList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AvatarLifeStateChangeNotify(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AvatarLifeStateChangeNotify( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { int rawValue = input.readEnum(); dieType_ = rawValue; break; } case 24: { sourceEntityId_ = input.readUInt32(); break; } case 40: { moveReliableSeq_ = input.readUInt32(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); attackTag_ = s; break; } case 88: { avatarGuid_ = input.readUInt64(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { serverBuffList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } serverBuffList_.add( input.readMessage(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.parser(), extensionRegistry)); break; } case 104: { lifeState_ = input.readUInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.class, emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.Builder.class); } public static final int LIFE_STATE_FIELD_NUMBER = 13; private int lifeState_; /** * uint32 life_state = 13; * @return The lifeState. */ @java.lang.Override public int getLifeState() { return lifeState_; } public static final int ATTACK_TAG_FIELD_NUMBER = 10; private volatile java.lang.Object attackTag_; /** * string attack_tag = 10; * @return The attackTag. */ @java.lang.Override public java.lang.String getAttackTag() { java.lang.Object ref = attackTag_; 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(); attackTag_ = s; return s; } } /** * string attack_tag = 10; * @return The bytes for attackTag. */ @java.lang.Override public com.google.protobuf.ByteString getAttackTagBytes() { java.lang.Object ref = attackTag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attackTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIE_TYPE_FIELD_NUMBER = 2; private int dieType_; /** * .PlayerDieType die_type = 2; * @return The enum numeric value on the wire for dieType. */ @java.lang.Override public int getDieTypeValue() { return dieType_; } /** * .PlayerDieType die_type = 2; * @return The dieType. */ @java.lang.Override public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { @SuppressWarnings("deprecation") emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; } public static final int SERVER_BUFF_LIST_FIELD_NUMBER = 12; private java.util.List serverBuffList_; /** * repeated .ServerBuff server_buff_list = 12; */ @java.lang.Override public java.util.List getServerBuffListList() { return serverBuffList_; } /** * repeated .ServerBuff server_buff_list = 12; */ @java.lang.Override public java.util.List getServerBuffListOrBuilderList() { return serverBuffList_; } /** * repeated .ServerBuff server_buff_list = 12; */ @java.lang.Override public int getServerBuffListCount() { return serverBuffList_.size(); } /** * repeated .ServerBuff server_buff_list = 12; */ @java.lang.Override public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { return serverBuffList_.get(index); } /** * repeated .ServerBuff server_buff_list = 12; */ @java.lang.Override public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( int index) { return serverBuffList_.get(index); } public static final int MOVE_RELIABLE_SEQ_FIELD_NUMBER = 5; private int moveReliableSeq_; /** * uint32 move_reliable_seq = 5; * @return The moveReliableSeq. */ @java.lang.Override public int getMoveReliableSeq() { return moveReliableSeq_; } public static final int SOURCE_ENTITY_ID_FIELD_NUMBER = 3; private int sourceEntityId_; /** * uint32 source_entity_id = 3; * @return The sourceEntityId. */ @java.lang.Override public int getSourceEntityId() { return sourceEntityId_; } public static final int AVATAR_GUID_FIELD_NUMBER = 11; private long avatarGuid_; /** * uint64 avatar_guid = 11; * @return The avatarGuid. */ @java.lang.Override public long getAvatarGuid() { return avatarGuid_; } 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 (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE.getNumber()) { output.writeEnum(2, dieType_); } if (sourceEntityId_ != 0) { output.writeUInt32(3, sourceEntityId_); } if (moveReliableSeq_ != 0) { output.writeUInt32(5, moveReliableSeq_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attackTag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, attackTag_); } if (avatarGuid_ != 0L) { output.writeUInt64(11, avatarGuid_); } for (int i = 0; i < serverBuffList_.size(); i++) { output.writeMessage(12, serverBuffList_.get(i)); } if (lifeState_ != 0) { output.writeUInt32(13, lifeState_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PLAYER_DIE_TYPE_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dieType_); } if (sourceEntityId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, sourceEntityId_); } if (moveReliableSeq_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, moveReliableSeq_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attackTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, attackTag_); } if (avatarGuid_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, avatarGuid_); } for (int i = 0; i < serverBuffList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, serverBuffList_.get(i)); } if (lifeState_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, lifeState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify)) { return super.equals(obj); } emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify other = (emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) obj; if (getLifeState() != other.getLifeState()) return false; if (!getAttackTag() .equals(other.getAttackTag())) return false; if (dieType_ != other.dieType_) return false; if (!getServerBuffListList() .equals(other.getServerBuffListList())) return false; if (getMoveReliableSeq() != other.getMoveReliableSeq()) return false; if (getSourceEntityId() != other.getSourceEntityId()) return false; if (getAvatarGuid() != other.getAvatarGuid()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + LIFE_STATE_FIELD_NUMBER; hash = (53 * hash) + getLifeState(); hash = (37 * hash) + ATTACK_TAG_FIELD_NUMBER; hash = (53 * hash) + getAttackTag().hashCode(); hash = (37 * hash) + DIE_TYPE_FIELD_NUMBER; hash = (53 * hash) + dieType_; if (getServerBuffListCount() > 0) { hash = (37 * hash) + SERVER_BUFF_LIST_FIELD_NUMBER; hash = (53 * hash) + getServerBuffListList().hashCode(); } hash = (37 * hash) + MOVE_RELIABLE_SEQ_FIELD_NUMBER; hash = (53 * hash) + getMoveReliableSeq(); hash = (37 * hash) + SOURCE_ENTITY_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceEntityId(); hash = (37 * hash) + AVATAR_GUID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAvatarGuid()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify 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 emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify 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 emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify 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(emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify 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; } /** *
     * CmdId: 1290
     * EnetChannelId: 0
     * EnetIsReliable: false
     * IsAllowClient: true
     * 
* * Protobuf type {@code AvatarLifeStateChangeNotify} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:AvatarLifeStateChangeNotify) emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotifyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.class, emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.Builder.class); } // Construct using emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getServerBuffListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); lifeState_ = 0; attackTag_ = ""; dieType_ = 0; if (serverBuffListBuilder_ == null) { serverBuffList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { serverBuffListBuilder_.clear(); } moveReliableSeq_ = 0; sourceEntityId_ = 0; avatarGuid_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.internal_static_AvatarLifeStateChangeNotify_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstanceForType() { return emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify build() { emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify buildPartial() { emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify result = new emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify(this); int from_bitField0_ = bitField0_; result.lifeState_ = lifeState_; result.attackTag_ = attackTag_; result.dieType_ = dieType_; if (serverBuffListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_); bitField0_ = (bitField0_ & ~0x00000001); } result.serverBuffList_ = serverBuffList_; } else { result.serverBuffList_ = serverBuffListBuilder_.build(); } result.moveReliableSeq_ = moveReliableSeq_; result.sourceEntityId_ = sourceEntityId_; result.avatarGuid_ = avatarGuid_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) { return mergeFrom((emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify other) { if (other == emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify.getDefaultInstance()) return this; if (other.getLifeState() != 0) { setLifeState(other.getLifeState()); } if (!other.getAttackTag().isEmpty()) { attackTag_ = other.attackTag_; onChanged(); } if (other.dieType_ != 0) { setDieTypeValue(other.getDieTypeValue()); } if (serverBuffListBuilder_ == null) { if (!other.serverBuffList_.isEmpty()) { if (serverBuffList_.isEmpty()) { serverBuffList_ = other.serverBuffList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureServerBuffListIsMutable(); serverBuffList_.addAll(other.serverBuffList_); } onChanged(); } } else { if (!other.serverBuffList_.isEmpty()) { if (serverBuffListBuilder_.isEmpty()) { serverBuffListBuilder_.dispose(); serverBuffListBuilder_ = null; serverBuffList_ = other.serverBuffList_; bitField0_ = (bitField0_ & ~0x00000001); serverBuffListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServerBuffListFieldBuilder() : null; } else { serverBuffListBuilder_.addAllMessages(other.serverBuffList_); } } } if (other.getMoveReliableSeq() != 0) { setMoveReliableSeq(other.getMoveReliableSeq()); } if (other.getSourceEntityId() != 0) { setSourceEntityId(other.getSourceEntityId()); } if (other.getAvatarGuid() != 0L) { setAvatarGuid(other.getAvatarGuid()); } this.mergeUnknownFields(other.unknownFields); 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 { emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int lifeState_ ; /** * uint32 life_state = 13; * @return The lifeState. */ @java.lang.Override public int getLifeState() { return lifeState_; } /** * uint32 life_state = 13; * @param value The lifeState to set. * @return This builder for chaining. */ public Builder setLifeState(int value) { lifeState_ = value; onChanged(); return this; } /** * uint32 life_state = 13; * @return This builder for chaining. */ public Builder clearLifeState() { lifeState_ = 0; onChanged(); return this; } private java.lang.Object attackTag_ = ""; /** * string attack_tag = 10; * @return The attackTag. */ public java.lang.String getAttackTag() { java.lang.Object ref = attackTag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attackTag_ = s; return s; } else { return (java.lang.String) ref; } } /** * string attack_tag = 10; * @return The bytes for attackTag. */ public com.google.protobuf.ByteString getAttackTagBytes() { java.lang.Object ref = attackTag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attackTag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string attack_tag = 10; * @param value The attackTag to set. * @return This builder for chaining. */ public Builder setAttackTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } attackTag_ = value; onChanged(); return this; } /** * string attack_tag = 10; * @return This builder for chaining. */ public Builder clearAttackTag() { attackTag_ = getDefaultInstance().getAttackTag(); onChanged(); return this; } /** * string attack_tag = 10; * @param value The bytes for attackTag to set. * @return This builder for chaining. */ public Builder setAttackTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attackTag_ = value; onChanged(); return this; } private int dieType_ = 0; /** * .PlayerDieType die_type = 2; * @return The enum numeric value on the wire for dieType. */ @java.lang.Override public int getDieTypeValue() { return dieType_; } /** * .PlayerDieType die_type = 2; * @param value The enum numeric value on the wire for dieType to set. * @return This builder for chaining. */ public Builder setDieTypeValue(int value) { dieType_ = value; onChanged(); return this; } /** * .PlayerDieType die_type = 2; * @return The dieType. */ @java.lang.Override public emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType() { @SuppressWarnings("deprecation") emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType result = emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.valueOf(dieType_); return result == null ? emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.UNRECOGNIZED : result; } /** * .PlayerDieType die_type = 2; * @param value The dieType to set. * @return This builder for chaining. */ public Builder setDieType(emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType value) { if (value == null) { throw new NullPointerException(); } dieType_ = value.getNumber(); onChanged(); return this; } /** * .PlayerDieType die_type = 2; * @return This builder for chaining. */ public Builder clearDieType() { dieType_ = 0; onChanged(); return this; } private java.util.List serverBuffList_ = java.util.Collections.emptyList(); private void ensureServerBuffListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serverBuffList_ = new java.util.ArrayList(serverBuffList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> serverBuffListBuilder_; /** * repeated .ServerBuff server_buff_list = 12; */ public java.util.List getServerBuffListList() { if (serverBuffListBuilder_ == null) { return java.util.Collections.unmodifiableList(serverBuffList_); } else { return serverBuffListBuilder_.getMessageList(); } } /** * repeated .ServerBuff server_buff_list = 12; */ public int getServerBuffListCount() { if (serverBuffListBuilder_ == null) { return serverBuffList_.size(); } else { return serverBuffListBuilder_.getCount(); } } /** * repeated .ServerBuff server_buff_list = 12; */ public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { if (serverBuffListBuilder_ == null) { return serverBuffList_.get(index); } else { return serverBuffListBuilder_.getMessage(index); } } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder setServerBuffList( int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { if (serverBuffListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServerBuffListIsMutable(); serverBuffList_.set(index, value); onChanged(); } else { serverBuffListBuilder_.setMessage(index, value); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder setServerBuffList( int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { if (serverBuffListBuilder_ == null) { ensureServerBuffListIsMutable(); serverBuffList_.set(index, builderForValue.build()); onChanged(); } else { serverBuffListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder addServerBuffList(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { if (serverBuffListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServerBuffListIsMutable(); serverBuffList_.add(value); onChanged(); } else { serverBuffListBuilder_.addMessage(value); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder addServerBuffList( int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff value) { if (serverBuffListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServerBuffListIsMutable(); serverBuffList_.add(index, value); onChanged(); } else { serverBuffListBuilder_.addMessage(index, value); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder addServerBuffList( emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { if (serverBuffListBuilder_ == null) { ensureServerBuffListIsMutable(); serverBuffList_.add(builderForValue.build()); onChanged(); } else { serverBuffListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder addServerBuffList( int index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder builderForValue) { if (serverBuffListBuilder_ == null) { ensureServerBuffListIsMutable(); serverBuffList_.add(index, builderForValue.build()); onChanged(); } else { serverBuffListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder addAllServerBuffList( java.lang.Iterable values) { if (serverBuffListBuilder_ == null) { ensureServerBuffListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, serverBuffList_); onChanged(); } else { serverBuffListBuilder_.addAllMessages(values); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder clearServerBuffList() { if (serverBuffListBuilder_ == null) { serverBuffList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { serverBuffListBuilder_.clear(); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public Builder removeServerBuffList(int index) { if (serverBuffListBuilder_ == null) { ensureServerBuffListIsMutable(); serverBuffList_.remove(index); onChanged(); } else { serverBuffListBuilder_.remove(index); } return this; } /** * repeated .ServerBuff server_buff_list = 12; */ public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( int index) { return getServerBuffListFieldBuilder().getBuilder(index); } /** * repeated .ServerBuff server_buff_list = 12; */ public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( int index) { if (serverBuffListBuilder_ == null) { return serverBuffList_.get(index); } else { return serverBuffListBuilder_.getMessageOrBuilder(index); } } /** * repeated .ServerBuff server_buff_list = 12; */ public java.util.List getServerBuffListOrBuilderList() { if (serverBuffListBuilder_ != null) { return serverBuffListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(serverBuffList_); } } /** * repeated .ServerBuff server_buff_list = 12; */ public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { return getServerBuffListFieldBuilder().addBuilder( emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); } /** * repeated .ServerBuff server_buff_list = 12; */ public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( int index) { return getServerBuffListFieldBuilder().addBuilder( index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); } /** * repeated .ServerBuff server_buff_list = 12; */ public java.util.List getServerBuffListBuilderList() { return getServerBuffListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder> getServerBuffListFieldBuilder() { if (serverBuffListBuilder_ == null) { serverBuffListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>( serverBuffList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); serverBuffList_ = null; } return serverBuffListBuilder_; } private int moveReliableSeq_ ; /** * uint32 move_reliable_seq = 5; * @return The moveReliableSeq. */ @java.lang.Override public int getMoveReliableSeq() { return moveReliableSeq_; } /** * uint32 move_reliable_seq = 5; * @param value The moveReliableSeq to set. * @return This builder for chaining. */ public Builder setMoveReliableSeq(int value) { moveReliableSeq_ = value; onChanged(); return this; } /** * uint32 move_reliable_seq = 5; * @return This builder for chaining. */ public Builder clearMoveReliableSeq() { moveReliableSeq_ = 0; onChanged(); return this; } private int sourceEntityId_ ; /** * uint32 source_entity_id = 3; * @return The sourceEntityId. */ @java.lang.Override public int getSourceEntityId() { return sourceEntityId_; } /** * uint32 source_entity_id = 3; * @param value The sourceEntityId to set. * @return This builder for chaining. */ public Builder setSourceEntityId(int value) { sourceEntityId_ = value; onChanged(); return this; } /** * uint32 source_entity_id = 3; * @return This builder for chaining. */ public Builder clearSourceEntityId() { sourceEntityId_ = 0; onChanged(); return this; } private long avatarGuid_ ; /** * uint64 avatar_guid = 11; * @return The avatarGuid. */ @java.lang.Override public long getAvatarGuid() { return avatarGuid_; } /** * uint64 avatar_guid = 11; * @param value The avatarGuid to set. * @return This builder for chaining. */ public Builder setAvatarGuid(long value) { avatarGuid_ = value; onChanged(); return this; } /** * uint64 avatar_guid = 11; * @return This builder for chaining. */ public Builder clearAvatarGuid() { avatarGuid_ = 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:AvatarLifeStateChangeNotify) } // @@protoc_insertion_point(class_scope:AvatarLifeStateChangeNotify) private static final emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify(); } public static emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AvatarLifeStateChangeNotify parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AvatarLifeStateChangeNotify(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_AvatarLifeStateChangeNotify_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AvatarLifeStateChangeNotify_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!AvatarLifeStateChangeNotify.proto\032\023Pla" + "yerDieType.proto\032\020ServerBuff.proto\"\330\001\n\033A" + "vatarLifeStateChangeNotify\022\022\n\nlife_state" + "\030\r \001(\r\022\022\n\nattack_tag\030\n \001(\t\022 \n\010die_type\030\002" + " \001(\0162\016.PlayerDieType\022%\n\020server_buff_list" + "\030\014 \003(\0132\013.ServerBuff\022\031\n\021move_reliable_seq" + "\030\005 \001(\r\022\030\n\020source_entity_id\030\003 \001(\r\022\023\n\013avat" + "ar_guid\030\013 \001(\004B\033\n\031emu.grasscutter.net.pro" + "tob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(), emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(), }); internal_static_AvatarLifeStateChangeNotify_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_AvatarLifeStateChangeNotify_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_AvatarLifeStateChangeNotify_descriptor, new java.lang.String[] { "LifeState", "AttackTag", "DieType", "ServerBuffList", "MoveReliableSeq", "SourceEntityId", "AvatarGuid", }); emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor(); emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }