Update(5.0): protocol definitions

This commit is contained in:
HongchengQ
2024-10-02 23:21:24 +08:00
Unverified
parent c663b60c1d
commit 6ff42dd0b0
263 changed files with 41050 additions and 33748 deletions
@@ -19,31 +19,31 @@ public final class CoopPointOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 id = 8;</code>
* @return The id.
*/
int getId();
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The state.
*/
emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State getState();
/**
* <code>uint32 self_confidence = 10;</code>
* <code>uint32 self_confidence = 11;</code>
* @return The selfConfidence.
*/
int getSelfConfidence();
/**
* <code>uint32 id = 15;</code>
* @return The id.
*/
int getId();
}
/**
* <pre>
* Obf: JCOLKMKHPFO
* obf: AKOGEOGFLLK
* </pre>
*
* Protobuf type {@code CoopPoint}
@@ -92,19 +92,19 @@ public final class CoopPointOuterClass {
done = true;
break;
case 64: {
int rawValue = input.readEnum();
id_ = input.readUInt32();
state_ = rawValue;
break;
}
case 80: {
case 88: {
selfConfidence_ = input.readUInt32();
break;
}
case 112: {
int rawValue = input.readEnum();
case 120: {
state_ = rawValue;
id_ = input.readUInt32();
break;
}
default: {
@@ -141,7 +141,7 @@ public final class CoopPointOuterClass {
/**
* <pre>
* Obf: JOFAANNBAFC
* obf: HPICHAILNKA
* </pre>
*
* Protobuf enum {@code CoopPoint.State}
@@ -149,32 +149,32 @@ public final class CoopPointOuterClass {
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>STATE_UNSTARTED = 0;</code>
* <code>UNSTARTED = 0;</code>
*/
STATE_UNSTARTED(0),
UNSTARTED(0),
/**
* <code>STATE_STARTED = 1;</code>
* <code>STARTED = 1;</code>
*/
STATE_STARTED(1),
STARTED(1),
/**
* <code>STATE_FINISHED = 2;</code>
* <code>FINISHED = 2;</code>
*/
STATE_FINISHED(2),
FINISHED(2),
UNRECOGNIZED(-1),
;
/**
* <code>STATE_UNSTARTED = 0;</code>
* <code>UNSTARTED = 0;</code>
*/
public static final int STATE_UNSTARTED_VALUE = 0;
public static final int UNSTARTED_VALUE = 0;
/**
* <code>STATE_STARTED = 1;</code>
* <code>STARTED = 1;</code>
*/
public static final int STATE_STARTED_VALUE = 1;
public static final int STARTED_VALUE = 1;
/**
* <code>STATE_FINISHED = 2;</code>
* <code>FINISHED = 2;</code>
*/
public static final int STATE_FINISHED_VALUE = 2;
public static final int FINISHED_VALUE = 2;
public final int getNumber() {
@@ -201,9 +201,9 @@ public final class CoopPointOuterClass {
*/
public static State forNumber(int value) {
switch (value) {
case 0: return STATE_UNSTARTED;
case 1: return STATE_STARTED;
case 2: return STATE_FINISHED;
case 0: return UNSTARTED;
case 1: return STARTED;
case 2: return FINISHED;
default: return null;
}
}
@@ -260,28 +260,17 @@ public final class CoopPointOuterClass {
// @@protoc_insertion_point(enum_scope:CoopPoint.State)
}
public static final int ID_FIELD_NUMBER = 8;
private int id_;
/**
* <code>uint32 id = 8;</code>
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int STATE_FIELD_NUMBER = 14;
public static final int STATE_FIELD_NUMBER = 8;
private int state_;
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The state.
*/
@java.lang.Override public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State getState() {
@@ -290,10 +279,10 @@ public final class CoopPointOuterClass {
return result == null ? emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.UNRECOGNIZED : result;
}
public static final int SELF_CONFIDENCE_FIELD_NUMBER = 10;
public static final int SELF_CONFIDENCE_FIELD_NUMBER = 11;
private int selfConfidence_;
/**
* <code>uint32 self_confidence = 10;</code>
* <code>uint32 self_confidence = 11;</code>
* @return The selfConfidence.
*/
@java.lang.Override
@@ -301,6 +290,17 @@ public final class CoopPointOuterClass {
return selfConfidence_;
}
public static final int ID_FIELD_NUMBER = 15;
private int id_;
/**
* <code>uint32 id = 15;</code>
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -315,14 +315,14 @@ public final class CoopPointOuterClass {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeUInt32(8, id_);
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.UNSTARTED.getNumber()) {
output.writeEnum(8, state_);
}
if (selfConfidence_ != 0) {
output.writeUInt32(10, selfConfidence_);
output.writeUInt32(11, selfConfidence_);
}
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.STATE_UNSTARTED.getNumber()) {
output.writeEnum(14, state_);
if (id_ != 0) {
output.writeUInt32(15, id_);
}
unknownFields.writeTo(output);
}
@@ -333,17 +333,17 @@ public final class CoopPointOuterClass {
if (size != -1) return size;
size = 0;
if (id_ != 0) {
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.UNSTARTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, id_);
.computeEnumSize(8, state_);
}
if (selfConfidence_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, selfConfidence_);
.computeUInt32Size(11, selfConfidence_);
}
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.STATE_UNSTARTED.getNumber()) {
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, state_);
.computeUInt32Size(15, id_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -360,11 +360,11 @@ public final class CoopPointOuterClass {
}
emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint other = (emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint) obj;
if (getId()
!= other.getId()) return false;
if (state_ != other.state_) return false;
if (getSelfConfidence()
!= other.getSelfConfidence()) return false;
if (getId()
!= other.getId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -376,12 +376,12 @@ public final class CoopPointOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + SELF_CONFIDENCE_FIELD_NUMBER;
hash = (53 * hash) + getSelfConfidence();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -479,7 +479,7 @@ public final class CoopPointOuterClass {
}
/**
* <pre>
* Obf: JCOLKMKHPFO
* obf: AKOGEOGFLLK
* </pre>
*
* Protobuf type {@code CoopPoint}
@@ -519,12 +519,12 @@ public final class CoopPointOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
state_ = 0;
selfConfidence_ = 0;
id_ = 0;
return this;
}
@@ -551,9 +551,9 @@ public final class CoopPointOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint buildPartial() {
emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint result = new emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint(this);
result.id_ = id_;
result.state_ = state_;
result.selfConfidence_ = selfConfidence_;
result.id_ = id_;
onBuilt();
return result;
}
@@ -602,15 +602,15 @@ public final class CoopPointOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint other) {
if (other == emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.getSelfConfidence() != 0) {
setSelfConfidence(other.getSelfConfidence());
}
if (other.getId() != 0) {
setId(other.getId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -640,47 +640,16 @@ public final class CoopPointOuterClass {
return this;
}
private int id_ ;
/**
* <code>uint32 id = 8;</code>
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* <code>uint32 id = 8;</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 = 8;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private int state_ = 0;
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
@@ -691,7 +660,7 @@ public final class CoopPointOuterClass {
return this;
}
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return The state.
*/
@java.lang.Override
@@ -701,7 +670,7 @@ public final class CoopPointOuterClass {
return result == null ? emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.UNRECOGNIZED : result;
}
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @param value The state to set.
* @return This builder for chaining.
*/
@@ -715,7 +684,7 @@ public final class CoopPointOuterClass {
return this;
}
/**
* <code>.CoopPoint.State state = 14;</code>
* <code>.CoopPoint.State state = 8;</code>
* @return This builder for chaining.
*/
public Builder clearState() {
@@ -727,7 +696,7 @@ public final class CoopPointOuterClass {
private int selfConfidence_ ;
/**
* <code>uint32 self_confidence = 10;</code>
* <code>uint32 self_confidence = 11;</code>
* @return The selfConfidence.
*/
@java.lang.Override
@@ -735,7 +704,7 @@ public final class CoopPointOuterClass {
return selfConfidence_;
}
/**
* <code>uint32 self_confidence = 10;</code>
* <code>uint32 self_confidence = 11;</code>
* @param value The selfConfidence to set.
* @return This builder for chaining.
*/
@@ -746,7 +715,7 @@ public final class CoopPointOuterClass {
return this;
}
/**
* <code>uint32 self_confidence = 10;</code>
* <code>uint32 self_confidence = 11;</code>
* @return This builder for chaining.
*/
public Builder clearSelfConfidence() {
@@ -755,6 +724,37 @@ public final class CoopPointOuterClass {
onChanged();
return this;
}
private int id_ ;
/**
* <code>uint32 id = 15;</code>
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* <code>uint32 id = 15;</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 = 15;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -822,12 +822,11 @@ public final class CoopPointOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017CoopPoint.proto\"\226\001\n\tCoopPoint\022\n\n\002id\030\010 " +
"\001(\r\022\037\n\005state\030\016 \001(\0162\020.CoopPoint.State\022\027\n\017" +
"self_confidence\030\n \001(\r\"C\n\005State\022\023\n\017STATE_" +
"UNSTARTED\020\000\022\021\n\rSTATE_STARTED\020\001\022\022\n\016STATE_" +
"FINISHED\020\002B\033\n\031emu.grasscutter.net.protob" +
"\006proto3"
"\n\017CoopPoint.proto\"\204\001\n\tCoopPoint\022\037\n\005state" +
"\030\010 \001(\0162\020.CoopPoint.State\022\027\n\017self_confide" +
"nce\030\013 \001(\r\022\n\n\002id\030\017 \001(\r\"1\n\005State\022\r\n\tUNSTAR" +
"TED\020\000\022\013\n\007STARTED\020\001\022\014\n\010FINISHED\020\002B\033\n\031emu." +
"grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -838,7 +837,7 @@ public final class CoopPointOuterClass {
internal_static_CoopPoint_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CoopPoint_descriptor,
new java.lang.String[] { "Id", "State", "SelfConfidence", });
new java.lang.String[] { "State", "SelfConfidence", "Id", });
}
// @@protoc_insertion_point(outer_class_scope)