mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 12:33:57 +08:00
Add new protocol definitions
This commit is contained in:
+125
-125
@@ -19,26 +19,26 @@ public final class BartenderLevelInfoOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bool is_finish = 11;</code>
|
||||
* @return The isFinish.
|
||||
* <code>uint32 max_score = 10;</code>
|
||||
* @return The maxScore.
|
||||
*/
|
||||
boolean getIsFinish();
|
||||
int getMaxScore();
|
||||
|
||||
/**
|
||||
* <code>uint32 id = 6;</code>
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
int getId();
|
||||
|
||||
/**
|
||||
* <code>uint32 max_score = 5;</code>
|
||||
* @return The maxScore.
|
||||
* <code>bool is_finish = 7;</code>
|
||||
* @return The isFinish.
|
||||
*/
|
||||
int getMaxScore();
|
||||
boolean getIsFinish();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: JDJKNHLKPBC
|
||||
* Obf: GONINFKLANB
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code BartenderLevelInfo}
|
||||
@@ -85,21 +85,21 @@ public final class BartenderLevelInfoOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 40: {
|
||||
|
||||
maxScore_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
case 24: {
|
||||
|
||||
id_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
case 56: {
|
||||
|
||||
isFinish_ = input.readBool();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
|
||||
maxScore_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -132,21 +132,21 @@ public final class BartenderLevelInfoOuterClass {
|
||||
emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo.class, emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int IS_FINISH_FIELD_NUMBER = 11;
|
||||
private boolean isFinish_;
|
||||
public static final int MAX_SCORE_FIELD_NUMBER = 10;
|
||||
private int maxScore_;
|
||||
/**
|
||||
* <code>bool is_finish = 11;</code>
|
||||
* @return The isFinish.
|
||||
* <code>uint32 max_score = 10;</code>
|
||||
* @return The maxScore.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsFinish() {
|
||||
return isFinish_;
|
||||
public int getMaxScore() {
|
||||
return maxScore_;
|
||||
}
|
||||
|
||||
public static final int ID_FIELD_NUMBER = 6;
|
||||
public static final int ID_FIELD_NUMBER = 3;
|
||||
private int id_;
|
||||
/**
|
||||
* <code>uint32 id = 6;</code>
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -154,15 +154,15 @@ public final class BartenderLevelInfoOuterClass {
|
||||
return id_;
|
||||
}
|
||||
|
||||
public static final int MAX_SCORE_FIELD_NUMBER = 5;
|
||||
private int maxScore_;
|
||||
public static final int IS_FINISH_FIELD_NUMBER = 7;
|
||||
private boolean isFinish_;
|
||||
/**
|
||||
* <code>uint32 max_score = 5;</code>
|
||||
* @return The maxScore.
|
||||
* <code>bool is_finish = 7;</code>
|
||||
* @return The isFinish.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getMaxScore() {
|
||||
return maxScore_;
|
||||
public boolean getIsFinish() {
|
||||
return isFinish_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@@ -179,14 +179,14 @@ public final class BartenderLevelInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (maxScore_ != 0) {
|
||||
output.writeUInt32(5, maxScore_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
output.writeUInt32(6, id_);
|
||||
output.writeUInt32(3, id_);
|
||||
}
|
||||
if (isFinish_ != false) {
|
||||
output.writeBool(11, isFinish_);
|
||||
output.writeBool(7, isFinish_);
|
||||
}
|
||||
if (maxScore_ != 0) {
|
||||
output.writeUInt32(10, maxScore_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -197,17 +197,17 @@ public final class BartenderLevelInfoOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (maxScore_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(5, maxScore_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(6, id_);
|
||||
.computeUInt32Size(3, id_);
|
||||
}
|
||||
if (isFinish_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(11, isFinish_);
|
||||
.computeBoolSize(7, isFinish_);
|
||||
}
|
||||
if (maxScore_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, maxScore_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -224,12 +224,12 @@ public final class BartenderLevelInfoOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo other = (emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo) obj;
|
||||
|
||||
if (getIsFinish()
|
||||
!= other.getIsFinish()) return false;
|
||||
if (getId()
|
||||
!= other.getId()) return false;
|
||||
if (getMaxScore()
|
||||
!= other.getMaxScore()) return false;
|
||||
if (getId()
|
||||
!= other.getId()) return false;
|
||||
if (getIsFinish()
|
||||
!= other.getIsFinish()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -241,13 +241,13 @@ public final class BartenderLevelInfoOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + MAX_SCORE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMaxScore();
|
||||
hash = (37 * hash) + ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getId();
|
||||
hash = (37 * hash) + IS_FINISH_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getIsFinish());
|
||||
hash = (37 * hash) + ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getId();
|
||||
hash = (37 * hash) + MAX_SCORE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMaxScore();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -345,7 +345,7 @@ public final class BartenderLevelInfoOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: JDJKNHLKPBC
|
||||
* Obf: GONINFKLANB
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code BartenderLevelInfo}
|
||||
@@ -385,11 +385,11 @@ public final class BartenderLevelInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
isFinish_ = false;
|
||||
maxScore_ = 0;
|
||||
|
||||
id_ = 0;
|
||||
|
||||
maxScore_ = 0;
|
||||
isFinish_ = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
@@ -417,9 +417,9 @@ public final class BartenderLevelInfoOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo buildPartial() {
|
||||
emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo result = new emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo(this);
|
||||
result.isFinish_ = isFinish_;
|
||||
result.id_ = id_;
|
||||
result.maxScore_ = maxScore_;
|
||||
result.id_ = id_;
|
||||
result.isFinish_ = isFinish_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -468,14 +468,14 @@ public final class BartenderLevelInfoOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo other) {
|
||||
if (other == emu.grasscutter.net.proto.BartenderLevelInfoOuterClass.BartenderLevelInfo.getDefaultInstance()) return this;
|
||||
if (other.getIsFinish() != false) {
|
||||
setIsFinish(other.getIsFinish());
|
||||
if (other.getMaxScore() != 0) {
|
||||
setMaxScore(other.getMaxScore());
|
||||
}
|
||||
if (other.getId() != 0) {
|
||||
setId(other.getId());
|
||||
}
|
||||
if (other.getMaxScore() != 0) {
|
||||
setMaxScore(other.getMaxScore());
|
||||
if (other.getIsFinish() != false) {
|
||||
setIsFinish(other.getIsFinish());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
@@ -506,71 +506,9 @@ public final class BartenderLevelInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isFinish_ ;
|
||||
/**
|
||||
* <code>bool is_finish = 11;</code>
|
||||
* @return The isFinish.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsFinish() {
|
||||
return isFinish_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_finish = 11;</code>
|
||||
* @param value The isFinish to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsFinish(boolean value) {
|
||||
|
||||
isFinish_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_finish = 11;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsFinish() {
|
||||
|
||||
isFinish_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int id_ ;
|
||||
/**
|
||||
* <code>uint32 id = 6;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getId() {
|
||||
return id_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 6;</code>
|
||||
* @param value The id to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setId(int value) {
|
||||
|
||||
id_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearId() {
|
||||
|
||||
id_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int maxScore_ ;
|
||||
/**
|
||||
* <code>uint32 max_score = 5;</code>
|
||||
* <code>uint32 max_score = 10;</code>
|
||||
* @return The maxScore.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -578,7 +516,7 @@ public final class BartenderLevelInfoOuterClass {
|
||||
return maxScore_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 max_score = 5;</code>
|
||||
* <code>uint32 max_score = 10;</code>
|
||||
* @param value The maxScore to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -589,7 +527,7 @@ public final class BartenderLevelInfoOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 max_score = 5;</code>
|
||||
* <code>uint32 max_score = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMaxScore() {
|
||||
@@ -598,6 +536,68 @@ public final class BartenderLevelInfoOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int id_ ;
|
||||
/**
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getId() {
|
||||
return id_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @param value The id to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setId(int value) {
|
||||
|
||||
id_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearId() {
|
||||
|
||||
id_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean isFinish_ ;
|
||||
/**
|
||||
* <code>bool is_finish = 7;</code>
|
||||
* @return The isFinish.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean getIsFinish() {
|
||||
return isFinish_;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_finish = 7;</code>
|
||||
* @param value The isFinish to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsFinish(boolean value) {
|
||||
|
||||
isFinish_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool is_finish = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsFinish() {
|
||||
|
||||
isFinish_ = false;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -666,8 +666,8 @@ public final class BartenderLevelInfoOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\030BartenderLevelInfo.proto\"F\n\022BartenderL" +
|
||||
"evelInfo\022\021\n\tis_finish\030\013 \001(\010\022\n\n\002id\030\006 \001(\r\022" +
|
||||
"\021\n\tmax_score\030\005 \001(\rB\033\n\031emu.grasscutter.ne" +
|
||||
"evelInfo\022\021\n\tmax_score\030\n \001(\r\022\n\n\002id\030\003 \001(\r\022" +
|
||||
"\021\n\tis_finish\030\007 \001(\010B\033\n\031emu.grasscutter.ne" +
|
||||
"t.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -679,7 +679,7 @@ public final class BartenderLevelInfoOuterClass {
|
||||
internal_static_BartenderLevelInfo_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_BartenderLevelInfo_descriptor,
|
||||
new java.lang.String[] { "IsFinish", "Id", "MaxScore", });
|
||||
new java.lang.String[] { "MaxScore", "Id", "IsFinish", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user