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,11 +19,17 @@ public final class H5ActivityIdsNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>uint32 client_red_dot_timestamp = 14;</code>
* @return The clientRedDotTimestamp.
*/
int getClientRedDotTimestamp();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapCount();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
boolean containsH5ActivityMap(
int key);
@@ -34,34 +40,28 @@ public final class H5ActivityIdsNotifyOuterClass {
java.util.Map<java.lang.Integer, java.lang.Integer>
getH5ActivityMap();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getH5ActivityMapMap();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapOrThrow(
int key);
/**
* <code>uint32 client_red_dot_timestamp = 3;</code>
* @return The clientRedDotTimestamp.
*/
int getClientRedDotTimestamp();
}
/**
* <pre>
* CmdId: 5687
* Obf: GGHFPMEMPIE
* CmdId: 28482
* Obf: HJNIDODDMPH
* </pre>
*
* Protobuf type {@code H5ActivityIdsNotify}
@@ -109,12 +109,7 @@ public final class H5ActivityIdsNotifyOuterClass {
case 0:
done = true;
break;
case 24: {
clientRedDotTimestamp_ = input.readUInt32();
break;
}
case 122: {
case 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
h5ActivityMap_ = com.google.protobuf.MapField.newMapField(
H5ActivityMapDefaultEntryHolder.defaultEntry);
@@ -127,6 +122,11 @@ public final class H5ActivityIdsNotifyOuterClass {
h5ActivityMap__.getKey(), h5ActivityMap__.getValue());
break;
}
case 112: {
clientRedDotTimestamp_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -156,7 +156,7 @@ public final class H5ActivityIdsNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 15:
case 12:
return internalGetH5ActivityMap();
default:
throw new RuntimeException(
@@ -171,7 +171,18 @@ public final class H5ActivityIdsNotifyOuterClass {
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.class, emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.Builder.class);
}
public static final int H5_ACTIVITY_MAP_FIELD_NUMBER = 15;
public static final int CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER = 14;
private int clientRedDotTimestamp_;
/**
* <code>uint32 client_red_dot_timestamp = 14;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
public static final int H5_ACTIVITY_MAP_FIELD_NUMBER = 12;
private static final class H5ActivityMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
@@ -198,7 +209,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return internalGetH5ActivityMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -216,7 +227,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return getH5ActivityMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -224,7 +235,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return internalGetH5ActivityMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -237,7 +248,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -252,17 +263,6 @@ public final class H5ActivityIdsNotifyOuterClass {
return map.get(key);
}
public static final int CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER = 3;
private int clientRedDotTimestamp_;
/**
* <code>uint32 client_red_dot_timestamp = 3;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -277,15 +277,15 @@ public final class H5ActivityIdsNotifyOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (clientRedDotTimestamp_ != 0) {
output.writeUInt32(3, clientRedDotTimestamp_);
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetH5ActivityMap(),
H5ActivityMapDefaultEntryHolder.defaultEntry,
15);
12);
if (clientRedDotTimestamp_ != 0) {
output.writeUInt32(14, clientRedDotTimestamp_);
}
unknownFields.writeTo(output);
}
@@ -295,10 +295,6 @@ public final class H5ActivityIdsNotifyOuterClass {
if (size != -1) return size;
size = 0;
if (clientRedDotTimestamp_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, clientRedDotTimestamp_);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetH5ActivityMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
@@ -307,7 +303,11 @@ public final class H5ActivityIdsNotifyOuterClass {
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, h5ActivityMap__);
.computeMessageSize(12, h5ActivityMap__);
}
if (clientRedDotTimestamp_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, clientRedDotTimestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -324,10 +324,10 @@ public final class H5ActivityIdsNotifyOuterClass {
}
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other = (emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) obj;
if (!internalGetH5ActivityMap().equals(
other.internalGetH5ActivityMap())) return false;
if (getClientRedDotTimestamp()
!= other.getClientRedDotTimestamp()) return false;
if (!internalGetH5ActivityMap().equals(
other.internalGetH5ActivityMap())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -339,12 +339,12 @@ public final class H5ActivityIdsNotifyOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getClientRedDotTimestamp();
if (!internalGetH5ActivityMap().getMap().isEmpty()) {
hash = (37 * hash) + H5_ACTIVITY_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetH5ActivityMap().hashCode();
}
hash = (37 * hash) + CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getClientRedDotTimestamp();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -442,8 +442,8 @@ public final class H5ActivityIdsNotifyOuterClass {
}
/**
* <pre>
* CmdId: 5687
* Obf: GGHFPMEMPIE
* CmdId: 28482
* Obf: HJNIDODDMPH
* </pre>
*
* Protobuf type {@code H5ActivityIdsNotify}
@@ -461,7 +461,7 @@ public final class H5ActivityIdsNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 15:
case 12:
return internalGetH5ActivityMap();
default:
throw new RuntimeException(
@@ -472,7 +472,7 @@ public final class H5ActivityIdsNotifyOuterClass {
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 15:
case 12:
return internalGetMutableH5ActivityMap();
default:
throw new RuntimeException(
@@ -505,9 +505,9 @@ public final class H5ActivityIdsNotifyOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableH5ActivityMap().clear();
clientRedDotTimestamp_ = 0;
internalGetMutableH5ActivityMap().clear();
return this;
}
@@ -535,9 +535,9 @@ public final class H5ActivityIdsNotifyOuterClass {
public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify buildPartial() {
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify result = new emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify(this);
int from_bitField0_ = bitField0_;
result.clientRedDotTimestamp_ = clientRedDotTimestamp_;
result.h5ActivityMap_ = internalGetH5ActivityMap();
result.h5ActivityMap_.makeImmutable();
result.clientRedDotTimestamp_ = clientRedDotTimestamp_;
onBuilt();
return result;
}
@@ -586,11 +586,11 @@ public final class H5ActivityIdsNotifyOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other) {
if (other == emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.getDefaultInstance()) return this;
internalGetMutableH5ActivityMap().mergeFrom(
other.internalGetH5ActivityMap());
if (other.getClientRedDotTimestamp() != 0) {
setClientRedDotTimestamp(other.getClientRedDotTimestamp());
}
internalGetMutableH5ActivityMap().mergeFrom(
other.internalGetH5ActivityMap());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -621,6 +621,37 @@ public final class H5ActivityIdsNotifyOuterClass {
}
private int bitField0_;
private int clientRedDotTimestamp_ ;
/**
* <code>uint32 client_red_dot_timestamp = 14;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
/**
* <code>uint32 client_red_dot_timestamp = 14;</code>
* @param value The clientRedDotTimestamp to set.
* @return This builder for chaining.
*/
public Builder setClientRedDotTimestamp(int value) {
clientRedDotTimestamp_ = value;
onChanged();
return this;
}
/**
* <code>uint32 client_red_dot_timestamp = 14;</code>
* @return This builder for chaining.
*/
public Builder clearClientRedDotTimestamp() {
clientRedDotTimestamp_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> h5ActivityMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
@@ -648,7 +679,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return internalGetH5ActivityMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -666,7 +697,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return getH5ActivityMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -674,7 +705,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return internalGetH5ActivityMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -687,7 +718,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
@@ -708,7 +739,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder removeH5ActivityMap(
@@ -727,7 +758,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return internalGetMutableH5ActivityMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder putH5ActivityMap(
int key,
@@ -739,7 +770,7 @@ public final class H5ActivityIdsNotifyOuterClass {
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 15;</code>
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder putAllH5ActivityMap(
@@ -748,37 +779,6 @@ public final class H5ActivityIdsNotifyOuterClass {
.putAll(values);
return this;
}
private int clientRedDotTimestamp_ ;
/**
* <code>uint32 client_red_dot_timestamp = 3;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
/**
* <code>uint32 client_red_dot_timestamp = 3;</code>
* @param value The clientRedDotTimestamp to set.
* @return This builder for chaining.
*/
public Builder setClientRedDotTimestamp(int value) {
clientRedDotTimestamp_ = value;
onChanged();
return this;
}
/**
* <code>uint32 client_red_dot_timestamp = 3;</code>
* @return This builder for chaining.
*/
public Builder clearClientRedDotTimestamp() {
clientRedDotTimestamp_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -852,9 +852,9 @@ public final class H5ActivityIdsNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\031H5ActivityIdsNotify.proto\"\257\001\n\023H5Activi" +
"tyIdsNotify\022@\n\017h5_activity_map\030\017 \003(\0132\'.H" +
"5ActivityIdsNotify.H5ActivityMapEntry\022 \n" +
"\030client_red_dot_timestamp\030\003 \001(\r\0324\n\022H5Act" +
"tyIdsNotify\022 \n\030client_red_dot_timestamp\030" +
"\016 \001(\r\022@\n\017h5_activity_map\030\014 \003(\0132\'.H5Activ" +
"ityIdsNotify.H5ActivityMapEntry\0324\n\022H5Act" +
"ivityMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(" +
"\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006prot" +
"o3"
@@ -868,7 +868,7 @@ public final class H5ActivityIdsNotifyOuterClass {
internal_static_H5ActivityIdsNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_H5ActivityIdsNotify_descriptor,
new java.lang.String[] { "H5ActivityMap", "ClientRedDotTimestamp", });
new java.lang.String[] { "ClientRedDotTimestamp", "H5ActivityMap", });
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor =
internal_static_H5ActivityIdsNotify_descriptor.getNestedTypes().get(0);
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_fieldAccessorTable = new