mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 09:45:03 +08:00
Add new protocol definitions
This commit is contained in:
+94
-94
@@ -19,32 +19,32 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>bool is_star = 13;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
boolean getIsStar();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return A list containing the mailIdList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getMailIdListList();
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return The count of mailIdList.
|
||||
*/
|
||||
int getMailIdListCount();
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The mailIdList at the given index.
|
||||
*/
|
||||
int getMailIdList(int index);
|
||||
|
||||
/**
|
||||
* <code>bool is_star = 14;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
boolean getIsStar();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1421
|
||||
* Obf: MJIPPMLPCIK
|
||||
* CmdId: 2285
|
||||
* Obf: BNOGMFJDHHL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ChangeMailStarNotify}
|
||||
@@ -94,6 +94,11 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
done = true;
|
||||
break;
|
||||
case 104: {
|
||||
|
||||
isStar_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
mailIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -101,7 +106,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
mailIdList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
case 122: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -114,11 +119,6 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
|
||||
isStar_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -154,10 +154,21 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.class, emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.Builder.class);
|
||||
}
|
||||
|
||||
public static final int MAIL_ID_LIST_FIELD_NUMBER = 13;
|
||||
public static final int IS_STAR_FIELD_NUMBER = 13;
|
||||
private boolean isStar_;
|
||||
/**
|
||||
* <code>bool is_star = 13;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsStar() {
|
||||
return isStar_;
|
||||
}
|
||||
|
||||
public static final int MAIL_ID_LIST_FIELD_NUMBER = 15;
|
||||
private com.google.protobuf.Internal.IntList mailIdList_;
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return A list containing the mailIdList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -166,14 +177,14 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
return mailIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return The count of mailIdList.
|
||||
*/
|
||||
public int getMailIdListCount() {
|
||||
return mailIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The mailIdList at the given index.
|
||||
*/
|
||||
@@ -182,17 +193,6 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
private int mailIdListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int IS_STAR_FIELD_NUMBER = 14;
|
||||
private boolean isStar_;
|
||||
/**
|
||||
* <code>bool is_star = 14;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsStar() {
|
||||
return isStar_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -208,16 +208,16 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (isStar_ != false) {
|
||||
output.writeBool(13, isStar_);
|
||||
}
|
||||
if (getMailIdListList().size() > 0) {
|
||||
output.writeUInt32NoTag(106);
|
||||
output.writeUInt32NoTag(122);
|
||||
output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < mailIdList_.size(); i++) {
|
||||
output.writeUInt32NoTag(mailIdList_.getInt(i));
|
||||
}
|
||||
if (isStar_ != false) {
|
||||
output.writeBool(14, isStar_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -227,6 +227,10 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (isStar_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(13, isStar_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < mailIdList_.size(); i++) {
|
||||
@@ -241,10 +245,6 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
mailIdListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
if (isStar_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(14, isStar_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -260,10 +260,10 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other = (emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify) obj;
|
||||
|
||||
if (!getMailIdListList()
|
||||
.equals(other.getMailIdListList())) return false;
|
||||
if (getIsStar()
|
||||
!= other.getIsStar()) return false;
|
||||
if (!getMailIdListList()
|
||||
.equals(other.getMailIdListList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -275,13 +275,13 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + IS_STAR_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsStar());
|
||||
if (getMailIdListCount() > 0) {
|
||||
hash = (37 * hash) + MAIL_ID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMailIdListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + IS_STAR_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsStar());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -379,8 +379,8 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 1421
|
||||
* Obf: MJIPPMLPCIK
|
||||
* CmdId: 2285
|
||||
* Obf: BNOGMFJDHHL
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ChangeMailStarNotify}
|
||||
@@ -420,10 +420,10 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
mailIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
isStar_ = false;
|
||||
|
||||
mailIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -451,12 +451,12 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
public emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify buildPartial() {
|
||||
emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify result = new emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.isStar_ = isStar_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
mailIdList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.mailIdList_ = mailIdList_;
|
||||
result.isStar_ = isStar_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -505,6 +505,9 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify other) {
|
||||
if (other == emu.grasscutter.net.proto.ChangeMailStarNotifyOuterClass.ChangeMailStarNotify.getDefaultInstance()) return this;
|
||||
if (other.getIsStar() != false) {
|
||||
setIsStar(other.getIsStar());
|
||||
}
|
||||
if (!other.mailIdList_.isEmpty()) {
|
||||
if (mailIdList_.isEmpty()) {
|
||||
mailIdList_ = other.mailIdList_;
|
||||
@@ -515,9 +518,6 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getIsStar() != false) {
|
||||
setIsStar(other.getIsStar());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -548,6 +548,37 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private boolean isStar_ ;
|
||||
/**
|
||||
* <code>bool is_star = 13;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsStar() {
|
||||
return isStar_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_star = 13;</code>
|
||||
* @param value The isStar to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsStar(boolean value) {
|
||||
|
||||
isStar_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_star = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsStar() {
|
||||
|
||||
isStar_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
|
||||
private void ensureMailIdListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
@@ -556,7 +587,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return A list containing the mailIdList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
@@ -565,14 +596,14 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
java.util.Collections.unmodifiableList(mailIdList_) : mailIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return The count of mailIdList.
|
||||
*/
|
||||
public int getMailIdListCount() {
|
||||
return mailIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The mailIdList at the given index.
|
||||
*/
|
||||
@@ -580,7 +611,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
return mailIdList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The mailIdList to set.
|
||||
* @return This builder for chaining.
|
||||
@@ -593,7 +624,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param value The mailIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -604,7 +635,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @param values The mailIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -617,7 +648,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 mail_id_list = 13;</code>
|
||||
* <code>repeated uint32 mail_id_list = 15;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMailIdList() {
|
||||
@@ -626,37 +657,6 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isStar_ ;
|
||||
/**
|
||||
* <code>bool is_star = 14;</code>
|
||||
* @return The isStar.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsStar() {
|
||||
return isStar_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_star = 14;</code>
|
||||
* @param value The isStar to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsStar(boolean value) {
|
||||
|
||||
isStar_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_star = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsStar() {
|
||||
|
||||
isStar_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -725,8 +725,8 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032ChangeMailStarNotify.proto\"=\n\024ChangeMa" +
|
||||
"ilStarNotify\022\024\n\014mail_id_list\030\r \003(\r\022\017\n\007is" +
|
||||
"_star\030\016 \001(\010B\033\n\031emu.grasscutter.net.proto" +
|
||||
"ilStarNotify\022\017\n\007is_star\030\r \001(\010\022\024\n\014mail_id" +
|
||||
"_list\030\017 \003(\rB\033\n\031emu.grasscutter.net.proto" +
|
||||
"b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -738,7 +738,7 @@ public final class ChangeMailStarNotifyOuterClass {
|
||||
internal_static_ChangeMailStarNotify_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_ChangeMailStarNotify_descriptor,
|
||||
new java.lang.String[] { "MailIdList", "IsStar", });
|
||||
new java.lang.String[] { "IsStar", "MailIdList", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user