Add new protocol definitions

This commit is contained in:
KingRainbow44
2023-08-14 18:57:07 -04:00
Unverified
parent 1bcb79840c
commit ceeaf3748a
3772 changed files with 448618 additions and 1108926 deletions
@@ -19,27 +19,27 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 retcode = 6;</code>
* <code>uint32 watcher_id = 2;</code>
* @return The watcherId.
*/
int getWatcherId();
/**
* <code>int32 retcode = 13;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>uint32 activity_id = 8;</code>
* <code>uint32 activity_id = 9;</code>
* @return The activityId.
*/
int getActivityId();
/**
* <code>uint32 watcher_id = 3;</code>
* @return The watcherId.
*/
int getWatcherId();
}
/**
* <pre>
* CmdId: 2111
* Obf: BHBNNEDNMOG
* CmdId: 2165
* Obf: PJMLLMMGELO
* </pre>
*
* Protobuf type {@code ActivityTakeWatcherRewardRsp}
@@ -86,21 +86,21 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
case 0:
done = true;
break;
case 24: {
case 16: {
watcherId_ = input.readUInt32();
break;
}
case 48: {
retcode_ = input.readInt32();
break;
}
case 64: {
case 72: {
activityId_ = input.readUInt32();
break;
}
case 104: {
retcode_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -133,10 +133,21 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp.class, emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 6;
public static final int WATCHER_ID_FIELD_NUMBER = 2;
private int watcherId_;
/**
* <code>uint32 watcher_id = 2;</code>
* @return The watcherId.
*/
@java.lang.Override
public int getWatcherId() {
return watcherId_;
}
public static final int RETCODE_FIELD_NUMBER = 13;
private int retcode_;
/**
* <code>int32 retcode = 6;</code>
* <code>int32 retcode = 13;</code>
* @return The retcode.
*/
@java.lang.Override
@@ -144,10 +155,10 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return retcode_;
}
public static final int ACTIVITY_ID_FIELD_NUMBER = 8;
public static final int ACTIVITY_ID_FIELD_NUMBER = 9;
private int activityId_;
/**
* <code>uint32 activity_id = 8;</code>
* <code>uint32 activity_id = 9;</code>
* @return The activityId.
*/
@java.lang.Override
@@ -155,17 +166,6 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return activityId_;
}
public static final int WATCHER_ID_FIELD_NUMBER = 3;
private int watcherId_;
/**
* <code>uint32 watcher_id = 3;</code>
* @return The watcherId.
*/
@java.lang.Override
public int getWatcherId() {
return watcherId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -181,13 +181,13 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (watcherId_ != 0) {
output.writeUInt32(3, watcherId_);
}
if (retcode_ != 0) {
output.writeInt32(6, retcode_);
output.writeUInt32(2, watcherId_);
}
if (activityId_ != 0) {
output.writeUInt32(8, activityId_);
output.writeUInt32(9, activityId_);
}
if (retcode_ != 0) {
output.writeInt32(13, retcode_);
}
unknownFields.writeTo(output);
}
@@ -200,15 +200,15 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
size = 0;
if (watcherId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, watcherId_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, retcode_);
.computeUInt32Size(2, watcherId_);
}
if (activityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, activityId_);
.computeUInt32Size(9, activityId_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, retcode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -225,12 +225,12 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
}
emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp other = (emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp) obj;
if (getWatcherId()
!= other.getWatcherId()) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (getActivityId()
!= other.getActivityId()) return false;
if (getWatcherId()
!= other.getWatcherId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -242,12 +242,12 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + WATCHER_ID_FIELD_NUMBER;
hash = (53 * hash) + getWatcherId();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + ACTIVITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getActivityId();
hash = (37 * hash) + WATCHER_ID_FIELD_NUMBER;
hash = (53 * hash) + getWatcherId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -345,8 +345,8 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
}
/**
* <pre>
* CmdId: 2111
* Obf: BHBNNEDNMOG
* CmdId: 2165
* Obf: PJMLLMMGELO
* </pre>
*
* Protobuf type {@code ActivityTakeWatcherRewardRsp}
@@ -386,12 +386,12 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
watcherId_ = 0;
retcode_ = 0;
activityId_ = 0;
watcherId_ = 0;
return this;
}
@@ -418,9 +418,9 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp buildPartial() {
emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp result = new emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp(this);
result.watcherId_ = watcherId_;
result.retcode_ = retcode_;
result.activityId_ = activityId_;
result.watcherId_ = watcherId_;
onBuilt();
return result;
}
@@ -469,15 +469,15 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp other) {
if (other == emu.grasscutter.net.proto.ActivityTakeWatcherRewardRspOuterClass.ActivityTakeWatcherRewardRsp.getDefaultInstance()) return this;
if (other.getWatcherId() != 0) {
setWatcherId(other.getWatcherId());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getActivityId() != 0) {
setActivityId(other.getActivityId());
}
if (other.getWatcherId() != 0) {
setWatcherId(other.getWatcherId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -507,9 +507,40 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return this;
}
private int watcherId_ ;
/**
* <code>uint32 watcher_id = 2;</code>
* @return The watcherId.
*/
@java.lang.Override
public int getWatcherId() {
return watcherId_;
}
/**
* <code>uint32 watcher_id = 2;</code>
* @param value The watcherId to set.
* @return This builder for chaining.
*/
public Builder setWatcherId(int value) {
watcherId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 watcher_id = 2;</code>
* @return This builder for chaining.
*/
public Builder clearWatcherId() {
watcherId_ = 0;
onChanged();
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 6;</code>
* <code>int32 retcode = 13;</code>
* @return The retcode.
*/
@java.lang.Override
@@ -517,7 +548,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return retcode_;
}
/**
* <code>int32 retcode = 6;</code>
* <code>int32 retcode = 13;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
@@ -528,7 +559,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return this;
}
/**
* <code>int32 retcode = 6;</code>
* <code>int32 retcode = 13;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
@@ -540,7 +571,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
private int activityId_ ;
/**
* <code>uint32 activity_id = 8;</code>
* <code>uint32 activity_id = 9;</code>
* @return The activityId.
*/
@java.lang.Override
@@ -548,7 +579,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return activityId_;
}
/**
* <code>uint32 activity_id = 8;</code>
* <code>uint32 activity_id = 9;</code>
* @param value The activityId to set.
* @return This builder for chaining.
*/
@@ -559,7 +590,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
return this;
}
/**
* <code>uint32 activity_id = 8;</code>
* <code>uint32 activity_id = 9;</code>
* @return This builder for chaining.
*/
public Builder clearActivityId() {
@@ -568,37 +599,6 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
onChanged();
return this;
}
private int watcherId_ ;
/**
* <code>uint32 watcher_id = 3;</code>
* @return The watcherId.
*/
@java.lang.Override
public int getWatcherId() {
return watcherId_;
}
/**
* <code>uint32 watcher_id = 3;</code>
* @param value The watcherId to set.
* @return This builder for chaining.
*/
public Builder setWatcherId(int value) {
watcherId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 watcher_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearWatcherId() {
watcherId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -667,9 +667,9 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\"ActivityTakeWatcherRewardRsp.proto\"X\n\034" +
"ActivityTakeWatcherRewardRsp\022\017\n\007retcode\030" +
"\006 \001(\005\022\023\n\013activity_id\030\010 \001(\r\022\022\n\nwatcher_id" +
"\030\003 \001(\rB\033\n\031emu.grasscutter.net.protob\006pro" +
"ActivityTakeWatcherRewardRsp\022\022\n\nwatcher_" +
"id\030\002 \001(\r\022\017\n\007retcode\030\r \001(\005\022\023\n\013activity_id" +
"\030\t \001(\rB\033\n\031emu.grasscutter.net.protob\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -681,7 +681,7 @@ public final class ActivityTakeWatcherRewardRspOuterClass {
internal_static_ActivityTakeWatcherRewardRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ActivityTakeWatcherRewardRsp_descriptor,
new java.lang.String[] { "Retcode", "ActivityId", "WatcherId", });
new java.lang.String[] { "WatcherId", "Retcode", "ActivityId", });
}
// @@protoc_insertion_point(outer_class_scope)