mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 13:51:18 +08:00
Add new protocol definitions
This commit is contained in:
+97
-97
@@ -19,30 +19,30 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 entity_id = 10;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
int getEntityId();
|
||||
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return Whether the abilityControlBlock field is set.
|
||||
*/
|
||||
boolean hasAbilityControlBlock();
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return The abilityControlBlock.
|
||||
*/
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock();
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>uint32 entity_id = 8;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
int getEntityId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1184
|
||||
* Obf: PLMKKNIJMEC
|
||||
* CmdId: 300
|
||||
* Obf: GEMMGPJKGAF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AbilityChangeNotify}
|
||||
@@ -89,7 +89,12 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 18: {
|
||||
case 64: {
|
||||
|
||||
entityId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder subBuilder = null;
|
||||
if (abilityControlBlock_ != null) {
|
||||
subBuilder = abilityControlBlock_.toBuilder();
|
||||
@@ -102,11 +107,6 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
|
||||
entityId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -139,21 +139,10 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.class, emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 10;
|
||||
private int entityId_;
|
||||
/**
|
||||
* <code>uint32 entity_id = 10;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
public static final int ABILITY_CONTROL_BLOCK_FIELD_NUMBER = 2;
|
||||
public static final int ABILITY_CONTROL_BLOCK_FIELD_NUMBER = 12;
|
||||
private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_;
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return Whether the abilityControlBlock field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -161,7 +150,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return abilityControlBlock_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return The abilityControlBlock.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -169,13 +158,24 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() {
|
||||
return getAbilityControlBlock();
|
||||
}
|
||||
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 8;
|
||||
private int entityId_;
|
||||
/**
|
||||
* <code>uint32 entity_id = 8;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -190,11 +190,11 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (abilityControlBlock_ != null) {
|
||||
output.writeMessage(2, getAbilityControlBlock());
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
output.writeUInt32(10, entityId_);
|
||||
output.writeUInt32(8, entityId_);
|
||||
}
|
||||
if (abilityControlBlock_ != null) {
|
||||
output.writeMessage(12, getAbilityControlBlock());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -205,13 +205,13 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (abilityControlBlock_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, getAbilityControlBlock());
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, entityId_);
|
||||
.computeUInt32Size(8, entityId_);
|
||||
}
|
||||
if (abilityControlBlock_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(12, getAbilityControlBlock());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -228,13 +228,13 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify other = (emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) obj;
|
||||
|
||||
if (getEntityId()
|
||||
!= other.getEntityId()) return false;
|
||||
if (hasAbilityControlBlock() != other.hasAbilityControlBlock()) return false;
|
||||
if (hasAbilityControlBlock()) {
|
||||
if (!getAbilityControlBlock()
|
||||
.equals(other.getAbilityControlBlock())) return false;
|
||||
}
|
||||
if (getEntityId()
|
||||
!= other.getEntityId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -246,12 +246,12 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntityId();
|
||||
if (hasAbilityControlBlock()) {
|
||||
hash = (37 * hash) + ABILITY_CONTROL_BLOCK_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getAbilityControlBlock().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntityId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -349,8 +349,8 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1184
|
||||
* Obf: PLMKKNIJMEC
|
||||
* CmdId: 300
|
||||
* Obf: GEMMGPJKGAF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AbilityChangeNotify}
|
||||
@@ -390,14 +390,14 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
entityId_ = 0;
|
||||
|
||||
if (abilityControlBlockBuilder_ == null) {
|
||||
abilityControlBlock_ = null;
|
||||
} else {
|
||||
abilityControlBlock_ = null;
|
||||
abilityControlBlockBuilder_ = null;
|
||||
}
|
||||
entityId_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -424,12 +424,12 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify result = new emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify(this);
|
||||
result.entityId_ = entityId_;
|
||||
if (abilityControlBlockBuilder_ == null) {
|
||||
result.abilityControlBlock_ = abilityControlBlock_;
|
||||
} else {
|
||||
result.abilityControlBlock_ = abilityControlBlockBuilder_.build();
|
||||
}
|
||||
result.entityId_ = entityId_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -478,12 +478,12 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.getDefaultInstance()) return this;
|
||||
if (other.getEntityId() != 0) {
|
||||
setEntityId(other.getEntityId());
|
||||
}
|
||||
if (other.hasAbilityControlBlock()) {
|
||||
mergeAbilityControlBlock(other.getAbilityControlBlock());
|
||||
}
|
||||
if (other.getEntityId() != 0) {
|
||||
setEntityId(other.getEntityId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -513,49 +513,18 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int entityId_ ;
|
||||
/**
|
||||
* <code>uint32 entity_id = 10;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 10;</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 = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntityId() {
|
||||
|
||||
entityId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> abilityControlBlockBuilder_;
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return Whether the abilityControlBlock field is set.
|
||||
*/
|
||||
public boolean hasAbilityControlBlock() {
|
||||
return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
* @return The abilityControlBlock.
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() {
|
||||
@@ -566,7 +535,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public Builder setAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) {
|
||||
if (abilityControlBlockBuilder_ == null) {
|
||||
@@ -582,7 +551,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public Builder setAbilityControlBlock(
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder builderForValue) {
|
||||
@@ -596,7 +565,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public Builder mergeAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) {
|
||||
if (abilityControlBlockBuilder_ == null) {
|
||||
@@ -614,7 +583,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public Builder clearAbilityControlBlock() {
|
||||
if (abilityControlBlockBuilder_ == null) {
|
||||
@@ -628,7 +597,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() {
|
||||
|
||||
@@ -636,7 +605,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
return getAbilityControlBlockFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() {
|
||||
if (abilityControlBlockBuilder_ != null) {
|
||||
@@ -647,7 +616,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AbilityControlBlock ability_control_block = 2;</code>
|
||||
* <code>.AbilityControlBlock ability_control_block = 12;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder>
|
||||
@@ -662,6 +631,37 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
}
|
||||
return abilityControlBlockBuilder_;
|
||||
}
|
||||
|
||||
private int entityId_ ;
|
||||
/**
|
||||
* <code>uint32 entity_id = 8;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 8;</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 = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntityId() {
|
||||
|
||||
entityId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -730,9 +730,9 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\031AbilityChangeNotify.proto\032\031AbilityCont" +
|
||||
"rolBlock.proto\"]\n\023AbilityChangeNotify\022\021\n" +
|
||||
"\tentity_id\030\n \001(\r\0223\n\025ability_control_bloc" +
|
||||
"k\030\002 \001(\0132\024.AbilityControlBlockB\033\n\031emu.gra" +
|
||||
"rolBlock.proto\"]\n\023AbilityChangeNotify\0223\n" +
|
||||
"\025ability_control_block\030\014 \001(\0132\024.AbilityCo" +
|
||||
"ntrolBlock\022\021\n\tentity_id\030\010 \001(\rB\033\n\031emu.gra" +
|
||||
"sscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -745,7 +745,7 @@ public final class AbilityChangeNotifyOuterClass {
|
||||
internal_static_AbilityChangeNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_AbilityChangeNotify_descriptor,
|
||||
new java.lang.String[] { "EntityId", "AbilityControlBlock", });
|
||||
new java.lang.String[] { "AbilityControlBlock", "EntityId", });
|
||||
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user