![JAR search and dependency download from the Maven repository](/logo.png)
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass 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.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ServerBuffChangeNotify.proto
package emu.grasscutter.net.proto;
public final class ServerBuffChangeNotifyOuterClass {
private ServerBuffChangeNotifyOuterClass() {}
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 ServerBuffChangeNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ServerBuffChangeNotify)
com.google.protobuf.MessageOrBuilder {
/**
* repeated uint64 avatar_guid_list = 6;
* @return A list containing the avatarGuidList.
*/
java.util.List getAvatarGuidListList();
/**
* repeated uint64 avatar_guid_list = 6;
* @return The count of avatarGuidList.
*/
int getAvatarGuidListCount();
/**
* repeated uint64 avatar_guid_list = 6;
* @param index The index of the element to return.
* @return The avatarGuidList at the given index.
*/
long getAvatarGuidList(int index);
/**
* bool is_creature_buff = 7;
* @return The isCreatureBuff.
*/
boolean getIsCreatureBuff();
/**
* repeated .ServerBuff server_buff_list = 9;
*/
java.util.List
getServerBuffListList();
/**
* repeated .ServerBuff server_buff_list = 9;
*/
emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index);
/**
* repeated .ServerBuff server_buff_list = 9;
*/
int getServerBuffListCount();
/**
* repeated .ServerBuff server_buff_list = 9;
*/
java.util.List extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>
getServerBuffListOrBuilderList();
/**
* repeated .ServerBuff server_buff_list = 9;
*/
emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder(
int index);
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The enum numeric value on the wire for serverBuffChangeType.
*/
int getServerBuffChangeTypeValue();
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The serverBuffChangeType.
*/
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType getServerBuffChangeType();
/**
* repeated uint32 entity_id_list = 13;
* @return A list containing the entityIdList.
*/
java.util.List getEntityIdListList();
/**
* repeated uint32 entity_id_list = 13;
* @return The count of entityIdList.
*/
int getEntityIdListCount();
/**
* repeated uint32 entity_id_list = 13;
* @param index The index of the element to return.
* @return The entityIdList at the given index.
*/
int getEntityIdList(int index);
}
/**
*
* CmdId: 334
* Name: DPDLNPHNOME
*
*
* Protobuf type {@code ServerBuffChangeNotify}
*/
public static final class ServerBuffChangeNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ServerBuffChangeNotify)
ServerBuffChangeNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerBuffChangeNotify.newBuilder() to construct.
private ServerBuffChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerBuffChangeNotify() {
avatarGuidList_ = emptyLongList();
serverBuffList_ = java.util.Collections.emptyList();
serverBuffChangeType_ = 0;
entityIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerBuffChangeNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerBuffChangeNotify(
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 48: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
avatarGuidList_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
avatarGuidList_.addLong(input.readUInt64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
avatarGuidList_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
avatarGuidList_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 56: {
isCreatureBuff_ = input.readBool();
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
serverBuffList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
serverBuffList_.add(
input.readMessage(emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.parser(), extensionRegistry));
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
entityIdList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
entityIdList_.addInt(input.readUInt32());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
entityIdList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
entityIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 120: {
int rawValue = input.readEnum();
serverBuffChangeType_ = rawValue;
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)) {
avatarGuidList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
entityIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.internal_static_ServerBuffChangeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.internal_static_ServerBuffChangeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.class, emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.Builder.class);
}
/**
*
* Name: JEMLILGEABH
*
*
* Protobuf enum {@code ServerBuffChangeNotify.ServerBuffChangeType}
*/
public enum ServerBuffChangeType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF = 0;
*/
SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF(0),
/**
* SERVER_BUFF_CHANGE_TYPE_DEL_SERVER_BUFF = 1;
*/
SERVER_BUFF_CHANGE_TYPE_DEL_SERVER_BUFF(1),
UNRECOGNIZED(-1),
;
/**
* SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF = 0;
*/
public static final int SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF_VALUE = 0;
/**
* SERVER_BUFF_CHANGE_TYPE_DEL_SERVER_BUFF = 1;
*/
public static final int SERVER_BUFF_CHANGE_TYPE_DEL_SERVER_BUFF_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServerBuffChangeType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ServerBuffChangeType forNumber(int value) {
switch (value) {
case 0: return SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF;
case 1: return SERVER_BUFF_CHANGE_TYPE_DEL_SERVER_BUFF;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ServerBuffChangeType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ServerBuffChangeType findValueByNumber(int number) {
return ServerBuffChangeType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.getDescriptor().getEnumTypes().get(0);
}
private static final ServerBuffChangeType[] VALUES = values();
public static ServerBuffChangeType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ServerBuffChangeType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ServerBuffChangeNotify.ServerBuffChangeType)
}
public static final int AVATAR_GUID_LIST_FIELD_NUMBER = 6;
private com.google.protobuf.Internal.LongList avatarGuidList_;
/**
* repeated uint64 avatar_guid_list = 6;
* @return A list containing the avatarGuidList.
*/
@java.lang.Override
public java.util.List
getAvatarGuidListList() {
return avatarGuidList_;
}
/**
* repeated uint64 avatar_guid_list = 6;
* @return The count of avatarGuidList.
*/
public int getAvatarGuidListCount() {
return avatarGuidList_.size();
}
/**
* repeated uint64 avatar_guid_list = 6;
* @param index The index of the element to return.
* @return The avatarGuidList at the given index.
*/
public long getAvatarGuidList(int index) {
return avatarGuidList_.getLong(index);
}
private int avatarGuidListMemoizedSerializedSize = -1;
public static final int IS_CREATURE_BUFF_FIELD_NUMBER = 7;
private boolean isCreatureBuff_;
/**
* bool is_creature_buff = 7;
* @return The isCreatureBuff.
*/
@java.lang.Override
public boolean getIsCreatureBuff() {
return isCreatureBuff_;
}
public static final int SERVER_BUFF_LIST_FIELD_NUMBER = 9;
private java.util.List serverBuffList_;
/**
* repeated .ServerBuff server_buff_list = 9;
*/
@java.lang.Override
public java.util.List getServerBuffListList() {
return serverBuffList_;
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
@java.lang.Override
public java.util.List extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>
getServerBuffListOrBuilderList() {
return serverBuffList_;
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
@java.lang.Override
public int getServerBuffListCount() {
return serverBuffList_.size();
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) {
return serverBuffList_.get(index);
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder(
int index) {
return serverBuffList_.get(index);
}
public static final int SERVER_BUFF_CHANGE_TYPE_FIELD_NUMBER = 15;
private int serverBuffChangeType_;
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The enum numeric value on the wire for serverBuffChangeType.
*/
@java.lang.Override public int getServerBuffChangeTypeValue() {
return serverBuffChangeType_;
}
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The serverBuffChangeType.
*/
@java.lang.Override public emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType getServerBuffChangeType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType result = emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.valueOf(serverBuffChangeType_);
return result == null ? emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.UNRECOGNIZED : result;
}
public static final int ENTITY_ID_LIST_FIELD_NUMBER = 13;
private com.google.protobuf.Internal.IntList entityIdList_;
/**
* repeated uint32 entity_id_list = 13;
* @return A list containing the entityIdList.
*/
@java.lang.Override
public java.util.List
getEntityIdListList() {
return entityIdList_;
}
/**
* repeated uint32 entity_id_list = 13;
* @return The count of entityIdList.
*/
public int getEntityIdListCount() {
return entityIdList_.size();
}
/**
* repeated uint32 entity_id_list = 13;
* @param index The index of the element to return.
* @return The entityIdList at the given index.
*/
public int getEntityIdList(int index) {
return entityIdList_.getInt(index);
}
private int entityIdListMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getAvatarGuidListList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize);
}
for (int i = 0; i < avatarGuidList_.size(); i++) {
output.writeUInt64NoTag(avatarGuidList_.getLong(i));
}
if (isCreatureBuff_ != false) {
output.writeBool(7, isCreatureBuff_);
}
for (int i = 0; i < serverBuffList_.size(); i++) {
output.writeMessage(9, serverBuffList_.get(i));
}
if (getEntityIdListList().size() > 0) {
output.writeUInt32NoTag(106);
output.writeUInt32NoTag(entityIdListMemoizedSerializedSize);
}
for (int i = 0; i < entityIdList_.size(); i++) {
output.writeUInt32NoTag(entityIdList_.getInt(i));
}
if (serverBuffChangeType_ != emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF.getNumber()) {
output.writeEnum(15, serverBuffChangeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < avatarGuidList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(avatarGuidList_.getLong(i));
}
size += dataSize;
if (!getAvatarGuidListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
avatarGuidListMemoizedSerializedSize = dataSize;
}
if (isCreatureBuff_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isCreatureBuff_);
}
for (int i = 0; i < serverBuffList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, serverBuffList_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < entityIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(entityIdList_.getInt(i));
}
size += dataSize;
if (!getEntityIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
entityIdListMemoizedSerializedSize = dataSize;
}
if (serverBuffChangeType_ != emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.SERVER_BUFF_CHANGE_TYPE_ADD_SERVER_BUFF.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, serverBuffChangeType_);
}
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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify other = (emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify) obj;
if (!getAvatarGuidListList()
.equals(other.getAvatarGuidListList())) return false;
if (getIsCreatureBuff()
!= other.getIsCreatureBuff()) return false;
if (!getServerBuffListList()
.equals(other.getServerBuffListList())) return false;
if (serverBuffChangeType_ != other.serverBuffChangeType_) return false;
if (!getEntityIdListList()
.equals(other.getEntityIdListList())) 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();
if (getAvatarGuidListCount() > 0) {
hash = (37 * hash) + AVATAR_GUID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getAvatarGuidListList().hashCode();
}
hash = (37 * hash) + IS_CREATURE_BUFF_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsCreatureBuff());
if (getServerBuffListCount() > 0) {
hash = (37 * hash) + SERVER_BUFF_LIST_FIELD_NUMBER;
hash = (53 * hash) + getServerBuffListList().hashCode();
}
hash = (37 * hash) + SERVER_BUFF_CHANGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + serverBuffChangeType_;
if (getEntityIdListCount() > 0) {
hash = (37 * hash) + ENTITY_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getEntityIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify 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: 334
* Name: DPDLNPHNOME
*
*
* Protobuf type {@code ServerBuffChangeNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ServerBuffChangeNotify)
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.internal_static_ServerBuffChangeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.internal_static_ServerBuffChangeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.class, emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.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();
avatarGuidList_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
isCreatureBuff_ = false;
if (serverBuffListBuilder_ == null) {
serverBuffList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
serverBuffListBuilder_.clear();
}
serverBuffChangeType_ = 0;
entityIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.internal_static_ServerBuffChangeNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify build() {
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify buildPartial() {
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify result = new emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
avatarGuidList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.avatarGuidList_ = avatarGuidList_;
result.isCreatureBuff_ = isCreatureBuff_;
if (serverBuffListBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.serverBuffList_ = serverBuffList_;
} else {
result.serverBuffList_ = serverBuffListBuilder_.build();
}
result.serverBuffChangeType_ = serverBuffChangeType_;
if (((bitField0_ & 0x00000004) != 0)) {
entityIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.entityIdList_ = entityIdList_;
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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify) {
return mergeFrom((emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify other) {
if (other == emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.getDefaultInstance()) return this;
if (!other.avatarGuidList_.isEmpty()) {
if (avatarGuidList_.isEmpty()) {
avatarGuidList_ = other.avatarGuidList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAvatarGuidListIsMutable();
avatarGuidList_.addAll(other.avatarGuidList_);
}
onChanged();
}
if (other.getIsCreatureBuff() != false) {
setIsCreatureBuff(other.getIsCreatureBuff());
}
if (serverBuffListBuilder_ == null) {
if (!other.serverBuffList_.isEmpty()) {
if (serverBuffList_.isEmpty()) {
serverBuffList_ = other.serverBuffList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServerBuffListIsMutable();
serverBuffList_.addAll(other.serverBuffList_);
}
onChanged();
}
} else {
if (!other.serverBuffList_.isEmpty()) {
if (serverBuffListBuilder_.isEmpty()) {
serverBuffListBuilder_.dispose();
serverBuffListBuilder_ = null;
serverBuffList_ = other.serverBuffList_;
bitField0_ = (bitField0_ & ~0x00000002);
serverBuffListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServerBuffListFieldBuilder() : null;
} else {
serverBuffListBuilder_.addAllMessages(other.serverBuffList_);
}
}
}
if (other.serverBuffChangeType_ != 0) {
setServerBuffChangeTypeValue(other.getServerBuffChangeTypeValue());
}
if (!other.entityIdList_.isEmpty()) {
if (entityIdList_.isEmpty()) {
entityIdList_ = other.entityIdList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEntityIdListIsMutable();
entityIdList_.addAll(other.entityIdList_);
}
onChanged();
}
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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList();
private void ensureAvatarGuidListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
avatarGuidList_ = mutableCopy(avatarGuidList_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint64 avatar_guid_list = 6;
* @return A list containing the avatarGuidList.
*/
public java.util.List
getAvatarGuidListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_;
}
/**
* repeated uint64 avatar_guid_list = 6;
* @return The count of avatarGuidList.
*/
public int getAvatarGuidListCount() {
return avatarGuidList_.size();
}
/**
* repeated uint64 avatar_guid_list = 6;
* @param index The index of the element to return.
* @return The avatarGuidList at the given index.
*/
public long getAvatarGuidList(int index) {
return avatarGuidList_.getLong(index);
}
/**
* repeated uint64 avatar_guid_list = 6;
* @param index The index to set the value at.
* @param value The avatarGuidList to set.
* @return This builder for chaining.
*/
public Builder setAvatarGuidList(
int index, long value) {
ensureAvatarGuidListIsMutable();
avatarGuidList_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated uint64 avatar_guid_list = 6;
* @param value The avatarGuidList to add.
* @return This builder for chaining.
*/
public Builder addAvatarGuidList(long value) {
ensureAvatarGuidListIsMutable();
avatarGuidList_.addLong(value);
onChanged();
return this;
}
/**
* repeated uint64 avatar_guid_list = 6;
* @param values The avatarGuidList to add.
* @return This builder for chaining.
*/
public Builder addAllAvatarGuidList(
java.lang.Iterable extends java.lang.Long> values) {
ensureAvatarGuidListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, avatarGuidList_);
onChanged();
return this;
}
/**
* repeated uint64 avatar_guid_list = 6;
* @return This builder for chaining.
*/
public Builder clearAvatarGuidList() {
avatarGuidList_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private boolean isCreatureBuff_ ;
/**
* bool is_creature_buff = 7;
* @return The isCreatureBuff.
*/
@java.lang.Override
public boolean getIsCreatureBuff() {
return isCreatureBuff_;
}
/**
* bool is_creature_buff = 7;
* @param value The isCreatureBuff to set.
* @return This builder for chaining.
*/
public Builder setIsCreatureBuff(boolean value) {
isCreatureBuff_ = value;
onChanged();
return this;
}
/**
* bool is_creature_buff = 7;
* @return This builder for chaining.
*/
public Builder clearIsCreatureBuff() {
isCreatureBuff_ = false;
onChanged();
return this;
}
private java.util.List serverBuffList_ =
java.util.Collections.emptyList();
private void ensureServerBuffListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
serverBuffList_ = new java.util.ArrayList(serverBuffList_);
bitField0_ |= 0x00000002;
}
}
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 = 9;
*/
public java.util.List getServerBuffListList() {
if (serverBuffListBuilder_ == null) {
return java.util.Collections.unmodifiableList(serverBuffList_);
} else {
return serverBuffListBuilder_.getMessageList();
}
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
public int getServerBuffListCount() {
if (serverBuffListBuilder_ == null) {
return serverBuffList_.size();
} else {
return serverBuffListBuilder_.getCount();
}
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
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 = 9;
*/
public Builder addAllServerBuffList(
java.lang.Iterable extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff> 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 = 9;
*/
public Builder clearServerBuffList() {
if (serverBuffListBuilder_ == null) {
serverBuffList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
serverBuffListBuilder_.clear();
}
return this;
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
public Builder removeServerBuffList(int index) {
if (serverBuffListBuilder_ == null) {
ensureServerBuffListIsMutable();
serverBuffList_.remove(index);
onChanged();
} else {
serverBuffListBuilder_.remove(index);
}
return this;
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder(
int index) {
return getServerBuffListFieldBuilder().getBuilder(index);
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
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 = 9;
*/
public java.util.List extends emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder>
getServerBuffListOrBuilderList() {
if (serverBuffListBuilder_ != null) {
return serverBuffListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serverBuffList_);
}
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() {
return getServerBuffListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance());
}
/**
* repeated .ServerBuff server_buff_list = 9;
*/
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 = 9;
*/
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_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
serverBuffList_ = null;
}
return serverBuffListBuilder_;
}
private int serverBuffChangeType_ = 0;
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The enum numeric value on the wire for serverBuffChangeType.
*/
@java.lang.Override public int getServerBuffChangeTypeValue() {
return serverBuffChangeType_;
}
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @param value The enum numeric value on the wire for serverBuffChangeType to set.
* @return This builder for chaining.
*/
public Builder setServerBuffChangeTypeValue(int value) {
serverBuffChangeType_ = value;
onChanged();
return this;
}
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return The serverBuffChangeType.
*/
@java.lang.Override
public emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType getServerBuffChangeType() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType result = emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.valueOf(serverBuffChangeType_);
return result == null ? emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType.UNRECOGNIZED : result;
}
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @param value The serverBuffChangeType to set.
* @return This builder for chaining.
*/
public Builder setServerBuffChangeType(emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify.ServerBuffChangeType value) {
if (value == null) {
throw new NullPointerException();
}
serverBuffChangeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .ServerBuffChangeNotify.ServerBuffChangeType server_buff_change_type = 15;
* @return This builder for chaining.
*/
public Builder clearServerBuffChangeType() {
serverBuffChangeType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList entityIdList_ = emptyIntList();
private void ensureEntityIdListIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
entityIdList_ = mutableCopy(entityIdList_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated uint32 entity_id_list = 13;
* @return A list containing the entityIdList.
*/
public java.util.List
getEntityIdListList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(entityIdList_) : entityIdList_;
}
/**
* repeated uint32 entity_id_list = 13;
* @return The count of entityIdList.
*/
public int getEntityIdListCount() {
return entityIdList_.size();
}
/**
* repeated uint32 entity_id_list = 13;
* @param index The index of the element to return.
* @return The entityIdList at the given index.
*/
public int getEntityIdList(int index) {
return entityIdList_.getInt(index);
}
/**
* repeated uint32 entity_id_list = 13;
* @param index The index to set the value at.
* @param value The entityIdList to set.
* @return This builder for chaining.
*/
public Builder setEntityIdList(
int index, int value) {
ensureEntityIdListIsMutable();
entityIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 entity_id_list = 13;
* @param value The entityIdList to add.
* @return This builder for chaining.
*/
public Builder addEntityIdList(int value) {
ensureEntityIdListIsMutable();
entityIdList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 entity_id_list = 13;
* @param values The entityIdList to add.
* @return This builder for chaining.
*/
public Builder addAllEntityIdList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureEntityIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entityIdList_);
onChanged();
return this;
}
/**
* repeated uint32 entity_id_list = 13;
* @return This builder for chaining.
*/
public Builder clearEntityIdList() {
entityIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
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:ServerBuffChangeNotify)
}
// @@protoc_insertion_point(class_scope:ServerBuffChangeNotify)
private static final emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify();
}
public static emu.grasscutter.net.proto.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerBuffChangeNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerBuffChangeNotify(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.ServerBuffChangeNotifyOuterClass.ServerBuffChangeNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ServerBuffChangeNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ServerBuffChangeNotify_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\034ServerBuffChangeNotify.proto\032\020ServerBu" +
"ff.proto\"\314\002\n\026ServerBuffChangeNotify\022\030\n\020a" +
"vatar_guid_list\030\006 \003(\004\022\030\n\020is_creature_buf" +
"f\030\007 \001(\010\022%\n\020server_buff_list\030\t \003(\0132\013.Serv" +
"erBuff\022M\n\027server_buff_change_type\030\017 \001(\0162" +
",.ServerBuffChangeNotify.ServerBuffChang" +
"eType\022\026\n\016entity_id_list\030\r \003(\r\"p\n\024ServerB" +
"uffChangeType\022+\n\'SERVER_BUFF_CHANGE_TYPE" +
"_ADD_SERVER_BUFF\020\000\022+\n\'SERVER_BUFF_CHANGE" +
"_TYPE_DEL_SERVER_BUFF\020\001B\033\n\031emu.grasscutt" +
"er.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor(),
});
internal_static_ServerBuffChangeNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ServerBuffChangeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ServerBuffChangeNotify_descriptor,
new java.lang.String[] { "AvatarGuidList", "IsCreatureBuff", "ServerBuffList", "ServerBuffChangeType", "EntityIdList", });
emu.grasscutter.net.proto.ServerBuffOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy