![JAR search and dependency download from the Maven repository](/logo.png)
emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grasscutter Show documentation
Show all versions of grasscutter Show documentation
A server software reimplementation for an anime game.
// 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 {
/**
* uint64 avatarGuid = 1;
* @return The avatarGuid.
*/
long getAvatarGuid();
/**
* uint32 lifeState = 2;
* @return The lifeState.
*/
int getLifeState();
/**
* uint32 sourceEntityId = 3;
* @return The sourceEntityId.
*/
int getSourceEntityId();
/**
* string attackTag = 4;
* @return The attackTag.
*/
java.lang.String getAttackTag();
/**
* string attackTag = 4;
* @return The bytes for attackTag.
*/
com.google.protobuf.ByteString
getAttackTagBytes();
/**
* .PlayerDieType dieType = 5;
* @return The enum numeric value on the wire for dieType.
*/
int getDieTypeValue();
/**
* .PlayerDieType dieType = 5;
* @return The dieType.
*/
emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType();
/**
* uint32 moveReliableSeq = 6;
* @return The moveReliableSeq.
*/
int getMoveReliableSeq();
}
/**
* 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;
}
@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();
}
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 8: {
avatarGuid_ = input.readUInt64();
break;
}
case 16: {
lifeState_ = input.readUInt32();
break;
}
case 24: {
sourceEntityId_ = input.readUInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
attackTag_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
dieType_ = rawValue;
break;
}
case 48: {
moveReliableSeq_ = 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 {
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 AVATARGUID_FIELD_NUMBER = 1;
private long avatarGuid_;
/**
* uint64 avatarGuid = 1;
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
public static final int LIFESTATE_FIELD_NUMBER = 2;
private int lifeState_;
/**
* uint32 lifeState = 2;
* @return The lifeState.
*/
@java.lang.Override
public int getLifeState() {
return lifeState_;
}
public static final int SOURCEENTITYID_FIELD_NUMBER = 3;
private int sourceEntityId_;
/**
* uint32 sourceEntityId = 3;
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
public static final int ATTACKTAG_FIELD_NUMBER = 4;
private volatile java.lang.Object attackTag_;
/**
* string attackTag = 4;
* @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 attackTag = 4;
* @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 DIETYPE_FIELD_NUMBER = 5;
private int dieType_;
/**
* .PlayerDieType dieType = 5;
* @return The enum numeric value on the wire for dieType.
*/
@java.lang.Override public int getDieTypeValue() {
return dieType_;
}
/**
* .PlayerDieType dieType = 5;
* @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 MOVERELIABLESEQ_FIELD_NUMBER = 6;
private int moveReliableSeq_;
/**
* uint32 moveReliableSeq = 6;
* @return The moveReliableSeq.
*/
@java.lang.Override
public int getMoveReliableSeq() {
return moveReliableSeq_;
}
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 (avatarGuid_ != 0L) {
output.writeUInt64(1, avatarGuid_);
}
if (lifeState_ != 0) {
output.writeUInt32(2, lifeState_);
}
if (sourceEntityId_ != 0) {
output.writeUInt32(3, sourceEntityId_);
}
if (!getAttackTagBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, attackTag_);
}
if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) {
output.writeEnum(5, dieType_);
}
if (moveReliableSeq_ != 0) {
output.writeUInt32(6, moveReliableSeq_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, avatarGuid_);
}
if (lifeState_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, lifeState_);
}
if (sourceEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, sourceEntityId_);
}
if (!getAttackTagBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, attackTag_);
}
if (dieType_ != emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType.PlayerDieNone.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, dieType_);
}
if (moveReliableSeq_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, moveReliableSeq_);
}
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 (getAvatarGuid()
!= other.getAvatarGuid()) return false;
if (getLifeState()
!= other.getLifeState()) return false;
if (getSourceEntityId()
!= other.getSourceEntityId()) return false;
if (!getAttackTag()
.equals(other.getAttackTag())) return false;
if (dieType_ != other.dieType_) return false;
if (getMoveReliableSeq()
!= other.getMoveReliableSeq()) 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) + AVATARGUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
hash = (37 * hash) + LIFESTATE_FIELD_NUMBER;
hash = (53 * hash) + getLifeState();
hash = (37 * hash) + SOURCEENTITYID_FIELD_NUMBER;
hash = (53 * hash) + getSourceEntityId();
hash = (37 * hash) + ATTACKTAG_FIELD_NUMBER;
hash = (53 * hash) + getAttackTag().hashCode();
hash = (37 * hash) + DIETYPE_FIELD_NUMBER;
hash = (53 * hash) + dieType_;
hash = (37 * hash) + MOVERELIABLESEQ_FIELD_NUMBER;
hash = (53 * hash) + getMoveReliableSeq();
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;
}
/**
* 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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
avatarGuid_ = 0L;
lifeState_ = 0;
sourceEntityId_ = 0;
attackTag_ = "";
dieType_ = 0;
moveReliableSeq_ = 0;
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);
result.avatarGuid_ = avatarGuid_;
result.lifeState_ = lifeState_;
result.sourceEntityId_ = sourceEntityId_;
result.attackTag_ = attackTag_;
result.dieType_ = dieType_;
result.moveReliableSeq_ = moveReliableSeq_;
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.getAvatarGuid() != 0L) {
setAvatarGuid(other.getAvatarGuid());
}
if (other.getLifeState() != 0) {
setLifeState(other.getLifeState());
}
if (other.getSourceEntityId() != 0) {
setSourceEntityId(other.getSourceEntityId());
}
if (!other.getAttackTag().isEmpty()) {
attackTag_ = other.attackTag_;
onChanged();
}
if (other.dieType_ != 0) {
setDieTypeValue(other.getDieTypeValue());
}
if (other.getMoveReliableSeq() != 0) {
setMoveReliableSeq(other.getMoveReliableSeq());
}
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 long avatarGuid_ ;
/**
* uint64 avatarGuid = 1;
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
/**
* uint64 avatarGuid = 1;
* @param value The avatarGuid to set.
* @return This builder for chaining.
*/
public Builder setAvatarGuid(long value) {
avatarGuid_ = value;
onChanged();
return this;
}
/**
* uint64 avatarGuid = 1;
* @return This builder for chaining.
*/
public Builder clearAvatarGuid() {
avatarGuid_ = 0L;
onChanged();
return this;
}
private int lifeState_ ;
/**
* uint32 lifeState = 2;
* @return The lifeState.
*/
@java.lang.Override
public int getLifeState() {
return lifeState_;
}
/**
* uint32 lifeState = 2;
* @param value The lifeState to set.
* @return This builder for chaining.
*/
public Builder setLifeState(int value) {
lifeState_ = value;
onChanged();
return this;
}
/**
* uint32 lifeState = 2;
* @return This builder for chaining.
*/
public Builder clearLifeState() {
lifeState_ = 0;
onChanged();
return this;
}
private int sourceEntityId_ ;
/**
* uint32 sourceEntityId = 3;
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
/**
* uint32 sourceEntityId = 3;
* @param value The sourceEntityId to set.
* @return This builder for chaining.
*/
public Builder setSourceEntityId(int value) {
sourceEntityId_ = value;
onChanged();
return this;
}
/**
* uint32 sourceEntityId = 3;
* @return This builder for chaining.
*/
public Builder clearSourceEntityId() {
sourceEntityId_ = 0;
onChanged();
return this;
}
private java.lang.Object attackTag_ = "";
/**
* string attackTag = 4;
* @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 attackTag = 4;
* @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 attackTag = 4;
* @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 attackTag = 4;
* @return This builder for chaining.
*/
public Builder clearAttackTag() {
attackTag_ = getDefaultInstance().getAttackTag();
onChanged();
return this;
}
/**
* string attackTag = 4;
* @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 dieType = 5;
* @return The enum numeric value on the wire for dieType.
*/
@java.lang.Override public int getDieTypeValue() {
return dieType_;
}
/**
* .PlayerDieType dieType = 5;
* @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 dieType = 5;
* @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 dieType = 5;
* @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 dieType = 5;
* @return This builder for chaining.
*/
public Builder clearDieType() {
dieType_ = 0;
onChanged();
return this;
}
private int moveReliableSeq_ ;
/**
* uint32 moveReliableSeq = 6;
* @return The moveReliableSeq.
*/
@java.lang.Override
public int getMoveReliableSeq() {
return moveReliableSeq_;
}
/**
* uint32 moveReliableSeq = 6;
* @param value The moveReliableSeq to set.
* @return This builder for chaining.
*/
public Builder setMoveReliableSeq(int value) {
moveReliableSeq_ = value;
onChanged();
return this;
}
/**
* uint32 moveReliableSeq = 6;
* @return This builder for chaining.
*/
public Builder clearMoveReliableSeq() {
moveReliableSeq_ = 0;
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\"\251\001\n\033AvatarLifeStateChan" +
"geNotify\022\022\n\navatarGuid\030\001 \001(\004\022\021\n\tlifeStat" +
"e\030\002 \001(\r\022\026\n\016sourceEntityId\030\003 \001(\r\022\021\n\tattac" +
"kTag\030\004 \001(\t\022\037\n\007dieType\030\005 \001(\0162\016.PlayerDieT" +
"ype\022\027\n\017moveReliableSeq\030\006 \001(\rB\033\n\031emu.gras" +
"scutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.PlayerDieTypeOuterClass.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[] { "AvatarGuid", "LifeState", "SourceEntityId", "AttackTag", "DieType", "MoveReliableSeq", });
emu.grasscutter.net.proto.PlayerDieTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy