mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 04:13:34 +08:00
Add new protocol definitions
This commit is contained in:
+98
-98
@@ -19,37 +19,37 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>uint32 template_id = 10;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
int getTemplateId();
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return A list containing the factorList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getFactorListList();
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return The count of factorList.
|
||||
*/
|
||||
int getFactorListCount();
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The factorList at the given index.
|
||||
*/
|
||||
int getFactorList(int index);
|
||||
|
||||
/**
|
||||
* <code>uint32 template_id = 1;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
int getTemplateId();
|
||||
|
||||
/**
|
||||
* <code>uint32 entrance_id = 13;</code>
|
||||
* <code>uint32 entrance_id = 3;</code>
|
||||
* @return The entranceId.
|
||||
*/
|
||||
int getEntranceId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: NIIAKFJMIEN
|
||||
* Obf: NIGBJJFCAGF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ParentQuestRandomInfo}
|
||||
@@ -98,12 +98,12 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
case 24: {
|
||||
|
||||
templateId_ = input.readUInt32();
|
||||
entranceId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
case 72: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
factorList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
@@ -111,7 +111,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
factorList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
case 74: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
@@ -124,9 +124,9 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
case 80: {
|
||||
|
||||
entranceId_ = input.readUInt32();
|
||||
templateId_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -164,10 +164,21 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.class, emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int FACTOR_LIST_FIELD_NUMBER = 12;
|
||||
public static final int TEMPLATE_ID_FIELD_NUMBER = 10;
|
||||
private int templateId_;
|
||||
/**
|
||||
* <code>uint32 template_id = 10;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTemplateId() {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
public static final int FACTOR_LIST_FIELD_NUMBER = 9;
|
||||
private com.google.protobuf.Internal.IntList factorList_;
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return A list containing the factorList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -176,14 +187,14 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return factorList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return The count of factorList.
|
||||
*/
|
||||
public int getFactorListCount() {
|
||||
return factorList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The factorList at the given index.
|
||||
*/
|
||||
@@ -192,21 +203,10 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
private int factorListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int TEMPLATE_ID_FIELD_NUMBER = 1;
|
||||
private int templateId_;
|
||||
/**
|
||||
* <code>uint32 template_id = 1;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTemplateId() {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
public static final int ENTRANCE_ID_FIELD_NUMBER = 13;
|
||||
public static final int ENTRANCE_ID_FIELD_NUMBER = 3;
|
||||
private int entranceId_;
|
||||
/**
|
||||
* <code>uint32 entrance_id = 13;</code>
|
||||
* <code>uint32 entrance_id = 3;</code>
|
||||
* @return The entranceId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -229,18 +229,18 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (templateId_ != 0) {
|
||||
output.writeUInt32(1, templateId_);
|
||||
if (entranceId_ != 0) {
|
||||
output.writeUInt32(3, entranceId_);
|
||||
}
|
||||
if (getFactorListList().size() > 0) {
|
||||
output.writeUInt32NoTag(98);
|
||||
output.writeUInt32NoTag(74);
|
||||
output.writeUInt32NoTag(factorListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < factorList_.size(); i++) {
|
||||
output.writeUInt32NoTag(factorList_.getInt(i));
|
||||
}
|
||||
if (entranceId_ != 0) {
|
||||
output.writeUInt32(13, entranceId_);
|
||||
if (templateId_ != 0) {
|
||||
output.writeUInt32(10, templateId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -251,9 +251,9 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (templateId_ != 0) {
|
||||
if (entranceId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(1, templateId_);
|
||||
.computeUInt32Size(3, entranceId_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -269,9 +269,9 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
factorListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
if (entranceId_ != 0) {
|
||||
if (templateId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(13, entranceId_);
|
||||
.computeUInt32Size(10, templateId_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -288,10 +288,10 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo other = (emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo) obj;
|
||||
|
||||
if (!getFactorListList()
|
||||
.equals(other.getFactorListList())) return false;
|
||||
if (getTemplateId()
|
||||
!= other.getTemplateId()) return false;
|
||||
if (!getFactorListList()
|
||||
.equals(other.getFactorListList())) return false;
|
||||
if (getEntranceId()
|
||||
!= other.getEntranceId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
@@ -305,12 +305,12 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTemplateId();
|
||||
if (getFactorListCount() > 0) {
|
||||
hash = (37 * hash) + FACTOR_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFactorListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTemplateId();
|
||||
hash = (37 * hash) + ENTRANCE_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntranceId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
@@ -410,7 +410,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: NIIAKFJMIEN
|
||||
* Obf: NIGBJJFCAGF
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code ParentQuestRandomInfo}
|
||||
@@ -450,10 +450,10 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
factorList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
templateId_ = 0;
|
||||
|
||||
factorList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
entranceId_ = 0;
|
||||
|
||||
return this;
|
||||
@@ -483,12 +483,12 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
public emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo buildPartial() {
|
||||
emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo result = new emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.templateId_ = templateId_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
factorList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.factorList_ = factorList_;
|
||||
result.templateId_ = templateId_;
|
||||
result.entranceId_ = entranceId_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@@ -538,6 +538,9 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo other) {
|
||||
if (other == emu.grasscutter.net.proto.ParentQuestRandomInfoOuterClass.ParentQuestRandomInfo.getDefaultInstance()) return this;
|
||||
if (other.getTemplateId() != 0) {
|
||||
setTemplateId(other.getTemplateId());
|
||||
}
|
||||
if (!other.factorList_.isEmpty()) {
|
||||
if (factorList_.isEmpty()) {
|
||||
factorList_ = other.factorList_;
|
||||
@@ -548,9 +551,6 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getTemplateId() != 0) {
|
||||
setTemplateId(other.getTemplateId());
|
||||
}
|
||||
if (other.getEntranceId() != 0) {
|
||||
setEntranceId(other.getEntranceId());
|
||||
}
|
||||
@@ -584,6 +584,37 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int templateId_ ;
|
||||
/**
|
||||
* <code>uint32 template_id = 10;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTemplateId() {
|
||||
return templateId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 template_id = 10;</code>
|
||||
* @param value The templateId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTemplateId(int value) {
|
||||
|
||||
templateId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 template_id = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTemplateId() {
|
||||
|
||||
templateId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList factorList_ = emptyIntList();
|
||||
private void ensureFactorListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
@@ -592,7 +623,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return A list containing the factorList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
@@ -601,14 +632,14 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
java.util.Collections.unmodifiableList(factorList_) : factorList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return The count of factorList.
|
||||
*/
|
||||
public int getFactorListCount() {
|
||||
return factorList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The factorList at the given index.
|
||||
*/
|
||||
@@ -616,7 +647,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return factorList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The factorList to set.
|
||||
* @return This builder for chaining.
|
||||
@@ -629,7 +660,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param value The factorList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -640,7 +671,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @param values The factorList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -653,7 +684,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 factor_list = 12;</code>
|
||||
* <code>repeated uint32 factor_list = 9;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFactorList() {
|
||||
@@ -663,40 +694,9 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int templateId_ ;
|
||||
/**
|
||||
* <code>uint32 template_id = 1;</code>
|
||||
* @return The templateId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTemplateId() {
|
||||
return templateId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 template_id = 1;</code>
|
||||
* @param value The templateId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTemplateId(int value) {
|
||||
|
||||
templateId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 template_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTemplateId() {
|
||||
|
||||
templateId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int entranceId_ ;
|
||||
/**
|
||||
* <code>uint32 entrance_id = 13;</code>
|
||||
* <code>uint32 entrance_id = 3;</code>
|
||||
* @return The entranceId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -704,7 +704,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return entranceId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entrance_id = 13;</code>
|
||||
* <code>uint32 entrance_id = 3;</code>
|
||||
* @param value The entranceId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -715,7 +715,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entrance_id = 13;</code>
|
||||
* <code>uint32 entrance_id = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntranceId() {
|
||||
@@ -792,8 +792,8 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\033ParentQuestRandomInfo.proto\"V\n\025ParentQ" +
|
||||
"uestRandomInfo\022\023\n\013factor_list\030\014 \003(\r\022\023\n\013t" +
|
||||
"emplate_id\030\001 \001(\r\022\023\n\013entrance_id\030\r \001(\rB\033\n" +
|
||||
"uestRandomInfo\022\023\n\013template_id\030\n \001(\r\022\023\n\013f" +
|
||||
"actor_list\030\t \003(\r\022\023\n\013entrance_id\030\003 \001(\rB\033\n" +
|
||||
"\031emu.grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -805,7 +805,7 @@ public final class ParentQuestRandomInfoOuterClass {
|
||||
internal_static_ParentQuestRandomInfo_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_ParentQuestRandomInfo_descriptor,
|
||||
new java.lang.String[] { "FactorList", "TemplateId", "EntranceId", });
|
||||
new java.lang.String[] { "TemplateId", "FactorList", "EntranceId", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user