Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/AvatarSkillDepotChangeNotifyOuterClass.java
Magix 71f6198361
Upgrade to REL3.7 (#2164)
* Remove hardcoded quest data

* Remove deprecated fields

* Try to fix packet

* Apply fix for token exchange

* Upgrade to REL3.7

* Add obfuscated protocol definitions

* Add missing enum (other protos too maybe)

* Re-add field setters and add note on removal
2023-05-27 00:29:02 -04:00

1787 lines
64 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AvatarSkillDepotChangeNotify.proto
package emu.grasscutter.net.proto;
public final class AvatarSkillDepotChangeNotifyOuterClass {
private AvatarSkillDepotChangeNotifyOuterClass() {}
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 AvatarSkillDepotChangeNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:AvatarSkillDepotChangeNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
long getAvatarGuid();
/**
* <code>uint32 core_proud_skill_level = 1;</code>
* @return The coreProudSkillLevel.
*/
int getCoreProudSkillLevel();
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
int getProudSkillExtraLevelMapCount();
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
boolean containsProudSkillExtraLevelMap(
int key);
/**
* Use {@link #getProudSkillExtraLevelMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getProudSkillExtraLevelMap();
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getProudSkillExtraLevelMapMap();
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
int getProudSkillExtraLevelMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
int getProudSkillExtraLevelMapOrThrow(
int key);
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
int getSkillLevelMapCount();
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
boolean containsSkillLevelMap(
int key);
/**
* Use {@link #getSkillLevelMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getSkillLevelMap();
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getSkillLevelMapMap();
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
int getSkillLevelMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
int getSkillLevelMapOrThrow(
int key);
/**
* <code>uint32 entity_id = 5;</code>
* @return The entityId.
*/
int getEntityId();
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return A list containing the proudSkillList.
*/
java.util.List<java.lang.Integer> getProudSkillListList();
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return The count of proudSkillList.
*/
int getProudSkillListCount();
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param index The index of the element to return.
* @return The proudSkillList at the given index.
*/
int getProudSkillList(int index);
/**
* <code>uint32 skill_depot_id = 8;</code>
* @return The skillDepotId.
*/
int getSkillDepotId();
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return A list containing the talentIdList.
*/
java.util.List<java.lang.Integer> getTalentIdListList();
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return The count of talentIdList.
*/
int getTalentIdListCount();
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param index The index of the element to return.
* @return The talentIdList at the given index.
*/
int getTalentIdList(int index);
}
/**
* <pre>
* CmdId: 1072
* Obf: GIIGEGLFMMB
* </pre>
*
* Protobuf type {@code AvatarSkillDepotChangeNotify}
*/
public static final class AvatarSkillDepotChangeNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AvatarSkillDepotChangeNotify)
AvatarSkillDepotChangeNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use AvatarSkillDepotChangeNotify.newBuilder() to construct.
private AvatarSkillDepotChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AvatarSkillDepotChangeNotify() {
proudSkillList_ = emptyIntList();
talentIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AvatarSkillDepotChangeNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AvatarSkillDepotChangeNotify(
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 8: {
coreProudSkillLevel_ = input.readUInt32();
break;
}
case 32: {
avatarGuid_ = input.readUInt64();
break;
}
case 40: {
entityId_ = input.readUInt32();
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
talentIdList_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
talentIdList_.addInt(input.readUInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
talentIdList_ = newIntList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
talentIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
proudSkillList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
proudSkillList_.addInt(input.readUInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
proudSkillList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
proudSkillList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 64: {
skillDepotId_ = input.readUInt32();
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
skillLevelMap_ = com.google.protobuf.MapField.newMapField(
SkillLevelMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
skillLevelMap__ = input.readMessage(
SkillLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
skillLevelMap_.getMutableMap().put(
skillLevelMap__.getKey(), skillLevelMap__.getValue());
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
proudSkillExtraLevelMap_ = com.google.protobuf.MapField.newMapField(
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
proudSkillExtraLevelMap__ = input.readMessage(
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
proudSkillExtraLevelMap_.getMutableMap().put(
proudSkillExtraLevelMap__.getKey(), proudSkillExtraLevelMap__.getValue());
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_ & 0x00000008) != 0)) {
talentIdList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
proudSkillList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 15:
return internalGetProudSkillExtraLevelMap();
case 9:
return internalGetSkillLevelMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.class, emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.Builder.class);
}
public static final int AVATAR_GUID_FIELD_NUMBER = 4;
private long avatarGuid_;
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
public static final int CORE_PROUD_SKILL_LEVEL_FIELD_NUMBER = 1;
private int coreProudSkillLevel_;
/**
* <code>uint32 core_proud_skill_level = 1;</code>
* @return The coreProudSkillLevel.
*/
@java.lang.Override
public int getCoreProudSkillLevel() {
return coreProudSkillLevel_;
}
public static final int PROUD_SKILL_EXTRA_LEVEL_MAP_FIELD_NUMBER = 15;
private static final class ProudSkillExtraLevelMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> proudSkillExtraLevelMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetProudSkillExtraLevelMap() {
if (proudSkillExtraLevelMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry);
}
return proudSkillExtraLevelMap_;
}
public int getProudSkillExtraLevelMapCount() {
return internalGetProudSkillExtraLevelMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public boolean containsProudSkillExtraLevelMap(
int key) {
return internalGetProudSkillExtraLevelMap().getMap().containsKey(key);
}
/**
* Use {@link #getProudSkillExtraLevelMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() {
return getProudSkillExtraLevelMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMapMap() {
return internalGetProudSkillExtraLevelMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public int getProudSkillExtraLevelMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetProudSkillExtraLevelMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public int getProudSkillExtraLevelMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetProudSkillExtraLevelMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SKILL_LEVEL_MAP_FIELD_NUMBER = 9;
private static final class SkillLevelMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> skillLevelMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetSkillLevelMap() {
if (skillLevelMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SkillLevelMapDefaultEntryHolder.defaultEntry);
}
return skillLevelMap_;
}
public int getSkillLevelMapCount() {
return internalGetSkillLevelMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public boolean containsSkillLevelMap(
int key) {
return internalGetSkillLevelMap().getMap().containsKey(key);
}
/**
* Use {@link #getSkillLevelMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() {
return getSkillLevelMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() {
return internalGetSkillLevelMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public int getSkillLevelMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetSkillLevelMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public int getSkillLevelMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetSkillLevelMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENTITY_ID_FIELD_NUMBER = 5;
private int entityId_;
/**
* <code>uint32 entity_id = 5;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
public static final int PROUD_SKILL_LIST_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.IntList proudSkillList_;
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return A list containing the proudSkillList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getProudSkillListList() {
return proudSkillList_;
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return The count of proudSkillList.
*/
public int getProudSkillListCount() {
return proudSkillList_.size();
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param index The index of the element to return.
* @return The proudSkillList at the given index.
*/
public int getProudSkillList(int index) {
return proudSkillList_.getInt(index);
}
private int proudSkillListMemoizedSerializedSize = -1;
public static final int SKILL_DEPOT_ID_FIELD_NUMBER = 8;
private int skillDepotId_;
/**
* <code>uint32 skill_depot_id = 8;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
public static final int TALENT_ID_LIST_FIELD_NUMBER = 6;
private com.google.protobuf.Internal.IntList talentIdList_;
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return A list containing the talentIdList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getTalentIdListList() {
return talentIdList_;
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return The count of talentIdList.
*/
public int getTalentIdListCount() {
return talentIdList_.size();
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param index The index of the element to return.
* @return The talentIdList at the given index.
*/
public int getTalentIdList(int index) {
return talentIdList_.getInt(index);
}
private int talentIdListMemoizedSerializedSize = -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 (coreProudSkillLevel_ != 0) {
output.writeUInt32(1, coreProudSkillLevel_);
}
if (avatarGuid_ != 0L) {
output.writeUInt64(4, avatarGuid_);
}
if (entityId_ != 0) {
output.writeUInt32(5, entityId_);
}
if (getTalentIdListList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(talentIdListMemoizedSerializedSize);
}
for (int i = 0; i < talentIdList_.size(); i++) {
output.writeUInt32NoTag(talentIdList_.getInt(i));
}
if (getProudSkillListList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(proudSkillListMemoizedSerializedSize);
}
for (int i = 0; i < proudSkillList_.size(); i++) {
output.writeUInt32NoTag(proudSkillList_.getInt(i));
}
if (skillDepotId_ != 0) {
output.writeUInt32(8, skillDepotId_);
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetSkillLevelMap(),
SkillLevelMapDefaultEntryHolder.defaultEntry,
9);
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetProudSkillExtraLevelMap(),
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry,
15);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (coreProudSkillLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, coreProudSkillLevel_);
}
if (avatarGuid_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, avatarGuid_);
}
if (entityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, entityId_);
}
{
int dataSize = 0;
for (int i = 0; i < talentIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(talentIdList_.getInt(i));
}
size += dataSize;
if (!getTalentIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
talentIdListMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < proudSkillList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(proudSkillList_.getInt(i));
}
size += dataSize;
if (!getProudSkillListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
proudSkillListMemoizedSerializedSize = dataSize;
}
if (skillDepotId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, skillDepotId_);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetSkillLevelMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
skillLevelMap__ = SkillLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, skillLevelMap__);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetProudSkillExtraLevelMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
proudSkillExtraLevelMap__ = ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, proudSkillExtraLevelMap__);
}
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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify other = (emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify) obj;
if (getAvatarGuid()
!= other.getAvatarGuid()) return false;
if (getCoreProudSkillLevel()
!= other.getCoreProudSkillLevel()) return false;
if (!internalGetProudSkillExtraLevelMap().equals(
other.internalGetProudSkillExtraLevelMap())) return false;
if (!internalGetSkillLevelMap().equals(
other.internalGetSkillLevelMap())) return false;
if (getEntityId()
!= other.getEntityId()) return false;
if (!getProudSkillListList()
.equals(other.getProudSkillListList())) return false;
if (getSkillDepotId()
!= other.getSkillDepotId()) return false;
if (!getTalentIdListList()
.equals(other.getTalentIdListList())) 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) + AVATAR_GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvatarGuid());
hash = (37 * hash) + CORE_PROUD_SKILL_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getCoreProudSkillLevel();
if (!internalGetProudSkillExtraLevelMap().getMap().isEmpty()) {
hash = (37 * hash) + PROUD_SKILL_EXTRA_LEVEL_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetProudSkillExtraLevelMap().hashCode();
}
if (!internalGetSkillLevelMap().getMap().isEmpty()) {
hash = (37 * hash) + SKILL_LEVEL_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetSkillLevelMap().hashCode();
}
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntityId();
if (getProudSkillListCount() > 0) {
hash = (37 * hash) + PROUD_SKILL_LIST_FIELD_NUMBER;
hash = (53 * hash) + getProudSkillListList().hashCode();
}
hash = (37 * hash) + SKILL_DEPOT_ID_FIELD_NUMBER;
hash = (53 * hash) + getSkillDepotId();
if (getTalentIdListCount() > 0) {
hash = (37 * hash) + TALENT_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getTalentIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify 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;
}
/**
* <pre>
* CmdId: 1072
* Obf: GIIGEGLFMMB
* </pre>
*
* Protobuf type {@code AvatarSkillDepotChangeNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AvatarSkillDepotChangeNotify)
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 15:
return internalGetProudSkillExtraLevelMap();
case 9:
return internalGetSkillLevelMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 15:
return internalGetMutableProudSkillExtraLevelMap();
case 9:
return internalGetMutableSkillLevelMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.class, emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.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;
coreProudSkillLevel_ = 0;
internalGetMutableProudSkillExtraLevelMap().clear();
internalGetMutableSkillLevelMap().clear();
entityId_ = 0;
proudSkillList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
skillDepotId_ = 0;
talentIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.internal_static_AvatarSkillDepotChangeNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify build() {
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify buildPartial() {
emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify result = new emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify(this);
int from_bitField0_ = bitField0_;
result.avatarGuid_ = avatarGuid_;
result.coreProudSkillLevel_ = coreProudSkillLevel_;
result.proudSkillExtraLevelMap_ = internalGetProudSkillExtraLevelMap();
result.proudSkillExtraLevelMap_.makeImmutable();
result.skillLevelMap_ = internalGetSkillLevelMap();
result.skillLevelMap_.makeImmutable();
result.entityId_ = entityId_;
if (((bitField0_ & 0x00000004) != 0)) {
proudSkillList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.proudSkillList_ = proudSkillList_;
result.skillDepotId_ = skillDepotId_;
if (((bitField0_ & 0x00000008) != 0)) {
talentIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.talentIdList_ = talentIdList_;
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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify) {
return mergeFrom((emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify other) {
if (other == emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify.getDefaultInstance()) return this;
if (other.getAvatarGuid() != 0L) {
setAvatarGuid(other.getAvatarGuid());
}
if (other.getCoreProudSkillLevel() != 0) {
setCoreProudSkillLevel(other.getCoreProudSkillLevel());
}
internalGetMutableProudSkillExtraLevelMap().mergeFrom(
other.internalGetProudSkillExtraLevelMap());
internalGetMutableSkillLevelMap().mergeFrom(
other.internalGetSkillLevelMap());
if (other.getEntityId() != 0) {
setEntityId(other.getEntityId());
}
if (!other.proudSkillList_.isEmpty()) {
if (proudSkillList_.isEmpty()) {
proudSkillList_ = other.proudSkillList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureProudSkillListIsMutable();
proudSkillList_.addAll(other.proudSkillList_);
}
onChanged();
}
if (other.getSkillDepotId() != 0) {
setSkillDepotId(other.getSkillDepotId());
}
if (!other.talentIdList_.isEmpty()) {
if (talentIdList_.isEmpty()) {
talentIdList_ = other.talentIdList_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTalentIdListIsMutable();
talentIdList_.addAll(other.talentIdList_);
}
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.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long avatarGuid_ ;
/**
* <code>uint64 avatar_guid = 4;</code>
* @return The avatarGuid.
*/
@java.lang.Override
public long getAvatarGuid() {
return avatarGuid_;
}
/**
* <code>uint64 avatar_guid = 4;</code>
* @param value The avatarGuid to set.
* @return This builder for chaining.
*/
public Builder setAvatarGuid(long value) {
avatarGuid_ = value;
onChanged();
return this;
}
/**
* <code>uint64 avatar_guid = 4;</code>
* @return This builder for chaining.
*/
public Builder clearAvatarGuid() {
avatarGuid_ = 0L;
onChanged();
return this;
}
private int coreProudSkillLevel_ ;
/**
* <code>uint32 core_proud_skill_level = 1;</code>
* @return The coreProudSkillLevel.
*/
@java.lang.Override
public int getCoreProudSkillLevel() {
return coreProudSkillLevel_;
}
/**
* <code>uint32 core_proud_skill_level = 1;</code>
* @param value The coreProudSkillLevel to set.
* @return This builder for chaining.
*/
public Builder setCoreProudSkillLevel(int value) {
coreProudSkillLevel_ = value;
onChanged();
return this;
}
/**
* <code>uint32 core_proud_skill_level = 1;</code>
* @return This builder for chaining.
*/
public Builder clearCoreProudSkillLevel() {
coreProudSkillLevel_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> proudSkillExtraLevelMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetProudSkillExtraLevelMap() {
if (proudSkillExtraLevelMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry);
}
return proudSkillExtraLevelMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableProudSkillExtraLevelMap() {
onChanged();;
if (proudSkillExtraLevelMap_ == null) {
proudSkillExtraLevelMap_ = com.google.protobuf.MapField.newMapField(
ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry);
}
if (!proudSkillExtraLevelMap_.isMutable()) {
proudSkillExtraLevelMap_ = proudSkillExtraLevelMap_.copy();
}
return proudSkillExtraLevelMap_;
}
public int getProudSkillExtraLevelMapCount() {
return internalGetProudSkillExtraLevelMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public boolean containsProudSkillExtraLevelMap(
int key) {
return internalGetProudSkillExtraLevelMap().getMap().containsKey(key);
}
/**
* Use {@link #getProudSkillExtraLevelMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMap() {
return getProudSkillExtraLevelMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getProudSkillExtraLevelMapMap() {
return internalGetProudSkillExtraLevelMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public int getProudSkillExtraLevelMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetProudSkillExtraLevelMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
@java.lang.Override
public int getProudSkillExtraLevelMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetProudSkillExtraLevelMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearProudSkillExtraLevelMap() {
internalGetMutableProudSkillExtraLevelMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
public Builder removeProudSkillExtraLevelMap(
int key) {
internalGetMutableProudSkillExtraLevelMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableProudSkillExtraLevelMap() {
return internalGetMutableProudSkillExtraLevelMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
public Builder putProudSkillExtraLevelMap(
int key,
int value) {
internalGetMutableProudSkillExtraLevelMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; proud_skill_extra_level_map = 15;</code>
*/
public Builder putAllProudSkillExtraLevelMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableProudSkillExtraLevelMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> skillLevelMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetSkillLevelMap() {
if (skillLevelMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
SkillLevelMapDefaultEntryHolder.defaultEntry);
}
return skillLevelMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableSkillLevelMap() {
onChanged();;
if (skillLevelMap_ == null) {
skillLevelMap_ = com.google.protobuf.MapField.newMapField(
SkillLevelMapDefaultEntryHolder.defaultEntry);
}
if (!skillLevelMap_.isMutable()) {
skillLevelMap_ = skillLevelMap_.copy();
}
return skillLevelMap_;
}
public int getSkillLevelMapCount() {
return internalGetSkillLevelMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public boolean containsSkillLevelMap(
int key) {
return internalGetSkillLevelMap().getMap().containsKey(key);
}
/**
* Use {@link #getSkillLevelMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMap() {
return getSkillLevelMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getSkillLevelMapMap() {
return internalGetSkillLevelMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public int getSkillLevelMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetSkillLevelMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
@java.lang.Override
public int getSkillLevelMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetSkillLevelMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearSkillLevelMap() {
internalGetMutableSkillLevelMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
public Builder removeSkillLevelMap(
int key) {
internalGetMutableSkillLevelMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableSkillLevelMap() {
return internalGetMutableSkillLevelMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
public Builder putSkillLevelMap(
int key,
int value) {
internalGetMutableSkillLevelMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; skill_level_map = 9;</code>
*/
public Builder putAllSkillLevelMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableSkillLevelMap().getMutableMap()
.putAll(values);
return this;
}
private int entityId_ ;
/**
* <code>uint32 entity_id = 5;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
/**
* <code>uint32 entity_id = 5;</code>
* @param value The entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityId(int value) {
entityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 entity_id = 5;</code>
* @return This builder for chaining.
*/
public Builder clearEntityId() {
entityId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList proudSkillList_ = emptyIntList();
private void ensureProudSkillListIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
proudSkillList_ = mutableCopy(proudSkillList_);
bitField0_ |= 0x00000004;
}
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return A list containing the proudSkillList.
*/
public java.util.List<java.lang.Integer>
getProudSkillListList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(proudSkillList_) : proudSkillList_;
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return The count of proudSkillList.
*/
public int getProudSkillListCount() {
return proudSkillList_.size();
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param index The index of the element to return.
* @return The proudSkillList at the given index.
*/
public int getProudSkillList(int index) {
return proudSkillList_.getInt(index);
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param index The index to set the value at.
* @param value The proudSkillList to set.
* @return This builder for chaining.
*/
public Builder setProudSkillList(
int index, int value) {
ensureProudSkillListIsMutable();
proudSkillList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param value The proudSkillList to add.
* @return This builder for chaining.
*/
public Builder addProudSkillList(int value) {
ensureProudSkillListIsMutable();
proudSkillList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @param values The proudSkillList to add.
* @return This builder for chaining.
*/
public Builder addAllProudSkillList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureProudSkillListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proudSkillList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 proud_skill_list = 7;</code>
* @return This builder for chaining.
*/
public Builder clearProudSkillList() {
proudSkillList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private int skillDepotId_ ;
/**
* <code>uint32 skill_depot_id = 8;</code>
* @return The skillDepotId.
*/
@java.lang.Override
public int getSkillDepotId() {
return skillDepotId_;
}
/**
* <code>uint32 skill_depot_id = 8;</code>
* @param value The skillDepotId to set.
* @return This builder for chaining.
*/
public Builder setSkillDepotId(int value) {
skillDepotId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 skill_depot_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearSkillDepotId() {
skillDepotId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList talentIdList_ = emptyIntList();
private void ensureTalentIdListIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
talentIdList_ = mutableCopy(talentIdList_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return A list containing the talentIdList.
*/
public java.util.List<java.lang.Integer>
getTalentIdListList() {
return ((bitField0_ & 0x00000008) != 0) ?
java.util.Collections.unmodifiableList(talentIdList_) : talentIdList_;
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return The count of talentIdList.
*/
public int getTalentIdListCount() {
return talentIdList_.size();
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param index The index of the element to return.
* @return The talentIdList at the given index.
*/
public int getTalentIdList(int index) {
return talentIdList_.getInt(index);
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param index The index to set the value at.
* @param value The talentIdList to set.
* @return This builder for chaining.
*/
public Builder setTalentIdList(
int index, int value) {
ensureTalentIdListIsMutable();
talentIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param value The talentIdList to add.
* @return This builder for chaining.
*/
public Builder addTalentIdList(int value) {
ensureTalentIdListIsMutable();
talentIdList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @param values The talentIdList to add.
* @return This builder for chaining.
*/
public Builder addAllTalentIdList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureTalentIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, talentIdList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 talent_id_list = 6;</code>
* @return This builder for chaining.
*/
public Builder clearTalentIdList() {
talentIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000008);
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:AvatarSkillDepotChangeNotify)
}
// @@protoc_insertion_point(class_scope:AvatarSkillDepotChangeNotify)
private static final emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify();
}
public static emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AvatarSkillDepotChangeNotify>
PARSER = new com.google.protobuf.AbstractParser<AvatarSkillDepotChangeNotify>() {
@java.lang.Override
public AvatarSkillDepotChangeNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AvatarSkillDepotChangeNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AvatarSkillDepotChangeNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AvatarSkillDepotChangeNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AvatarSkillDepotChangeNotifyOuterClass.AvatarSkillDepotChangeNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AvatarSkillDepotChangeNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AvatarSkillDepotChangeNotify_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_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\"AvatarSkillDepotChangeNotify.proto\"\322\003\n" +
"\034AvatarSkillDepotChangeNotify\022\023\n\013avatar_" +
"guid\030\004 \001(\004\022\036\n\026core_proud_skill_level\030\001 \001" +
"(\r\022_\n\033proud_skill_extra_level_map\030\017 \003(\0132" +
":.AvatarSkillDepotChangeNotify.ProudSkil" +
"lExtraLevelMapEntry\022I\n\017skill_level_map\030\t" +
" \003(\01320.AvatarSkillDepotChangeNotify.Skil" +
"lLevelMapEntry\022\021\n\tentity_id\030\005 \001(\r\022\030\n\020pro" +
"ud_skill_list\030\007 \003(\r\022\026\n\016skill_depot_id\030\010 " +
"\001(\r\022\026\n\016talent_id_list\030\006 \003(\r\032>\n\034ProudSkil" +
"lExtraLevelMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005valu" +
"e\030\002 \001(\r:\0028\001\0324\n\022SkillLevelMapEntry\022\013\n\003key" +
"\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001B\033\n\031emu.grasscu" +
"tter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_AvatarSkillDepotChangeNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_AvatarSkillDepotChangeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarSkillDepotChangeNotify_descriptor,
new java.lang.String[] { "AvatarGuid", "CoreProudSkillLevel", "ProudSkillExtraLevelMap", "SkillLevelMap", "EntityId", "ProudSkillList", "SkillDepotId", "TalentIdList", });
internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_descriptor =
internal_static_AvatarSkillDepotChangeNotify_descriptor.getNestedTypes().get(0);
internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarSkillDepotChangeNotify_ProudSkillExtraLevelMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_descriptor =
internal_static_AvatarSkillDepotChangeNotify_descriptor.getNestedTypes().get(1);
internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarSkillDepotChangeNotify_SkillLevelMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}