mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 05:43:33 +08:00
Add new protocol definitions
This commit is contained in:
+86
-86
@@ -19,21 +19,21 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 gachaType = 5;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
int getGachaType();
|
||||
|
||||
/**
|
||||
* <code>uint32 gachaScheduleId = 10;</code>
|
||||
* <code>uint32 gachaScheduleId = 1;</code>
|
||||
* @return The gachaScheduleId.
|
||||
*/
|
||||
int getGachaScheduleId();
|
||||
|
||||
/**
|
||||
* <code>uint32 gachaType = 15;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
int getGachaType();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1558
|
||||
* Obf: HIFNJMPDIHJ
|
||||
* CmdId: 24635
|
||||
* Obf: OOFAKCOGPFK
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GachaOpenWishNotify}
|
||||
@@ -80,16 +80,16 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 40: {
|
||||
|
||||
gachaType_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
case 8: {
|
||||
|
||||
gachaScheduleId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
|
||||
gachaType_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -122,21 +122,10 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify.class, emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int GACHATYPE_FIELD_NUMBER = 5;
|
||||
private int gachaType_;
|
||||
/**
|
||||
* <code>uint32 gachaType = 5;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getGachaType() {
|
||||
return gachaType_;
|
||||
}
|
||||
|
||||
public static final int GACHASCHEDULEID_FIELD_NUMBER = 10;
|
||||
public static final int GACHASCHEDULEID_FIELD_NUMBER = 1;
|
||||
private int gachaScheduleId_;
|
||||
/**
|
||||
* <code>uint32 gachaScheduleId = 10;</code>
|
||||
* <code>uint32 gachaScheduleId = 1;</code>
|
||||
* @return The gachaScheduleId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -144,6 +133,17 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
return gachaScheduleId_;
|
||||
}
|
||||
|
||||
public static final int GACHATYPE_FIELD_NUMBER = 15;
|
||||
private int gachaType_;
|
||||
/**
|
||||
* <code>uint32 gachaType = 15;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getGachaType() {
|
||||
return gachaType_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -158,11 +158,11 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (gachaType_ != 0) {
|
||||
output.writeUInt32(5, gachaType_);
|
||||
}
|
||||
if (gachaScheduleId_ != 0) {
|
||||
output.writeUInt32(10, gachaScheduleId_);
|
||||
output.writeUInt32(1, gachaScheduleId_);
|
||||
}
|
||||
if (gachaType_ != 0) {
|
||||
output.writeUInt32(15, gachaType_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -173,13 +173,13 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (gachaType_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(5, gachaType_);
|
||||
}
|
||||
if (gachaScheduleId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, gachaScheduleId_);
|
||||
.computeUInt32Size(1, gachaScheduleId_);
|
||||
}
|
||||
if (gachaType_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(15, gachaType_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -196,10 +196,10 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify other = (emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify) obj;
|
||||
|
||||
if (getGachaType()
|
||||
!= other.getGachaType()) return false;
|
||||
if (getGachaScheduleId()
|
||||
!= other.getGachaScheduleId()) return false;
|
||||
if (getGachaType()
|
||||
!= other.getGachaType()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -211,10 +211,10 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + GACHATYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGachaType();
|
||||
hash = (37 * hash) + GACHASCHEDULEID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGachaScheduleId();
|
||||
hash = (37 * hash) + GACHATYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGachaType();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -312,8 +312,8 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1558
|
||||
* Obf: HIFNJMPDIHJ
|
||||
* CmdId: 24635
|
||||
* Obf: OOFAKCOGPFK
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GachaOpenWishNotify}
|
||||
@@ -353,10 +353,10 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
gachaType_ = 0;
|
||||
|
||||
gachaScheduleId_ = 0;
|
||||
|
||||
gachaType_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -383,8 +383,8 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify result = new emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify(this);
|
||||
result.gachaType_ = gachaType_;
|
||||
result.gachaScheduleId_ = gachaScheduleId_;
|
||||
result.gachaType_ = gachaType_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -433,12 +433,12 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.GachaOpenWishNotifyOuterClass.GachaOpenWishNotify.getDefaultInstance()) return this;
|
||||
if (other.getGachaType() != 0) {
|
||||
setGachaType(other.getGachaType());
|
||||
}
|
||||
if (other.getGachaScheduleId() != 0) {
|
||||
setGachaScheduleId(other.getGachaScheduleId());
|
||||
}
|
||||
if (other.getGachaType() != 0) {
|
||||
setGachaType(other.getGachaType());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -468,40 +468,9 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int gachaType_ ;
|
||||
/**
|
||||
* <code>uint32 gachaType = 5;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getGachaType() {
|
||||
return gachaType_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaType = 5;</code>
|
||||
* @param value The gachaType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setGachaType(int value) {
|
||||
|
||||
gachaType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaType = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearGachaType() {
|
||||
|
||||
gachaType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int gachaScheduleId_ ;
|
||||
/**
|
||||
* <code>uint32 gachaScheduleId = 10;</code>
|
||||
* <code>uint32 gachaScheduleId = 1;</code>
|
||||
* @return The gachaScheduleId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -509,7 +478,7 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
return gachaScheduleId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaScheduleId = 10;</code>
|
||||
* <code>uint32 gachaScheduleId = 1;</code>
|
||||
* @param value The gachaScheduleId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -520,7 +489,7 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaScheduleId = 10;</code>
|
||||
* <code>uint32 gachaScheduleId = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearGachaScheduleId() {
|
||||
@@ -529,6 +498,37 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int gachaType_ ;
|
||||
/**
|
||||
* <code>uint32 gachaType = 15;</code>
|
||||
* @return The gachaType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getGachaType() {
|
||||
return gachaType_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaType = 15;</code>
|
||||
* @param value The gachaType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setGachaType(int value) {
|
||||
|
||||
gachaType_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 gachaType = 15;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearGachaType() {
|
||||
|
||||
gachaType_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -597,8 +597,8 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\031GachaOpenWishNotify.proto\"A\n\023GachaOpen" +
|
||||
"WishNotify\022\021\n\tgachaType\030\005 \001(\r\022\027\n\017gachaSc" +
|
||||
"heduleId\030\n \001(\rB\033\n\031emu.grasscutter.net.pr" +
|
||||
"WishNotify\022\027\n\017gachaScheduleId\030\001 \001(\r\022\021\n\tg" +
|
||||
"achaType\030\017 \001(\rB\033\n\031emu.grasscutter.net.pr" +
|
||||
"otob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -610,7 +610,7 @@ public final class GachaOpenWishNotifyOuterClass {
|
||||
internal_static_GachaOpenWishNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_GachaOpenWishNotify_descriptor,
|
||||
new java.lang.String[] { "GachaType", "GachaScheduleId", });
|
||||
new java.lang.String[] { "GachaScheduleId", "GachaType", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user