mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-27 05:09:51 +08:00
Add new protocol definitions
This commit is contained in:
@@ -19,13 +19,7 @@ public final class CoopPointOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 self_confidence = 9;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
int getSelfConfidence();
|
||||
|
||||
/**
|
||||
* <code>uint32 id = 11;</code>
|
||||
* <code>uint32 id = 8;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
int getId();
|
||||
@@ -40,10 +34,16 @@ public final class CoopPointOuterClass {
|
||||
* @return The state.
|
||||
*/
|
||||
emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State getState();
|
||||
|
||||
/**
|
||||
* <code>uint32 self_confidence = 10;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
int getSelfConfidence();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: COOPFICDPBH
|
||||
* Obf: JCOLKMKHPFO
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code CoopPoint}
|
||||
@@ -91,16 +91,16 @@ public final class CoopPointOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 72: {
|
||||
|
||||
selfConfidence_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
case 64: {
|
||||
|
||||
id_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
|
||||
selfConfidence_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
int rawValue = input.readEnum();
|
||||
|
||||
@@ -141,7 +141,7 @@ public final class CoopPointOuterClass {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: EPLCHMLHLBA
|
||||
* Obf: JOFAANNBAFC
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code CoopPoint.State}
|
||||
@@ -260,21 +260,10 @@ public final class CoopPointOuterClass {
|
||||
// @@protoc_insertion_point(enum_scope:CoopPoint.State)
|
||||
}
|
||||
|
||||
public static final int SELF_CONFIDENCE_FIELD_NUMBER = 9;
|
||||
private int selfConfidence_;
|
||||
/**
|
||||
* <code>uint32 self_confidence = 9;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getSelfConfidence() {
|
||||
return selfConfidence_;
|
||||
}
|
||||
|
||||
public static final int ID_FIELD_NUMBER = 11;
|
||||
public static final int ID_FIELD_NUMBER = 8;
|
||||
private int id_;
|
||||
/**
|
||||
* <code>uint32 id = 11;</code>
|
||||
* <code>uint32 id = 8;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -301,6 +290,17 @@ 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;
|
||||
private int selfConfidence_;
|
||||
/**
|
||||
* <code>uint32 self_confidence = 10;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getSelfConfidence() {
|
||||
return selfConfidence_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -315,11 +315,11 @@ public final class CoopPointOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (selfConfidence_ != 0) {
|
||||
output.writeUInt32(9, selfConfidence_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
output.writeUInt32(11, id_);
|
||||
output.writeUInt32(8, id_);
|
||||
}
|
||||
if (selfConfidence_ != 0) {
|
||||
output.writeUInt32(10, selfConfidence_);
|
||||
}
|
||||
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.STATE_UNSTARTED.getNumber()) {
|
||||
output.writeEnum(14, state_);
|
||||
@@ -333,13 +333,13 @@ public final class CoopPointOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (selfConfidence_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(9, selfConfidence_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(11, id_);
|
||||
.computeUInt32Size(8, id_);
|
||||
}
|
||||
if (selfConfidence_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(10, selfConfidence_);
|
||||
}
|
||||
if (state_ != emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.State.STATE_UNSTARTED.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
@@ -360,11 +360,11 @@ public final class CoopPointOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint other = (emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint) obj;
|
||||
|
||||
if (getSelfConfidence()
|
||||
!= other.getSelfConfidence()) return false;
|
||||
if (getId()
|
||||
!= other.getId()) return false;
|
||||
if (state_ != other.state_) return false;
|
||||
if (getSelfConfidence()
|
||||
!= other.getSelfConfidence()) 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) + SELF_CONFIDENCE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSelfConfidence();
|
||||
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 = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -479,7 +479,7 @@ public final class CoopPointOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: COOPFICDPBH
|
||||
* Obf: JCOLKMKHPFO
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code CoopPoint}
|
||||
@@ -519,12 +519,12 @@ public final class CoopPointOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
selfConfidence_ = 0;
|
||||
|
||||
id_ = 0;
|
||||
|
||||
state_ = 0;
|
||||
|
||||
selfConfidence_ = 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.selfConfidence_ = selfConfidence_;
|
||||
result.id_ = id_;
|
||||
result.state_ = state_;
|
||||
result.selfConfidence_ = selfConfidence_;
|
||||
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.getSelfConfidence() != 0) {
|
||||
setSelfConfidence(other.getSelfConfidence());
|
||||
}
|
||||
if (other.getId() != 0) {
|
||||
setId(other.getId());
|
||||
}
|
||||
if (other.state_ != 0) {
|
||||
setStateValue(other.getStateValue());
|
||||
}
|
||||
if (other.getSelfConfidence() != 0) {
|
||||
setSelfConfidence(other.getSelfConfidence());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -640,40 +640,9 @@ public final class CoopPointOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int selfConfidence_ ;
|
||||
/**
|
||||
* <code>uint32 self_confidence = 9;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getSelfConfidence() {
|
||||
return selfConfidence_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 self_confidence = 9;</code>
|
||||
* @param value The selfConfidence to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSelfConfidence(int value) {
|
||||
|
||||
selfConfidence_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 self_confidence = 9;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSelfConfidence() {
|
||||
|
||||
selfConfidence_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int id_ ;
|
||||
/**
|
||||
* <code>uint32 id = 11;</code>
|
||||
* <code>uint32 id = 8;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -681,7 +650,7 @@ public final class CoopPointOuterClass {
|
||||
return id_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 11;</code>
|
||||
* <code>uint32 id = 8;</code>
|
||||
* @param value The id to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -692,7 +661,7 @@ public final class CoopPointOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 11;</code>
|
||||
* <code>uint32 id = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearId() {
|
||||
@@ -755,6 +724,37 @@ public final class CoopPointOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int selfConfidence_ ;
|
||||
/**
|
||||
* <code>uint32 self_confidence = 10;</code>
|
||||
* @return The selfConfidence.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getSelfConfidence() {
|
||||
return selfConfidence_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 self_confidence = 10;</code>
|
||||
* @param value The selfConfidence to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSelfConfidence(int value) {
|
||||
|
||||
selfConfidence_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 self_confidence = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSelfConfidence() {
|
||||
|
||||
selfConfidence_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -822,9 +822,9 @@ public final class CoopPointOuterClass {
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\017CoopPoint.proto\"\226\001\n\tCoopPoint\022\027\n\017self_" +
|
||||
"confidence\030\t \001(\r\022\n\n\002id\030\013 \001(\r\022\037\n\005state\030\016 " +
|
||||
"\001(\0162\020.CoopPoint.State\"C\n\005State\022\023\n\017STATE_" +
|
||||
"\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"
|
||||
@@ -838,7 +838,7 @@ public final class CoopPointOuterClass {
|
||||
internal_static_CoopPoint_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_CoopPoint_descriptor,
|
||||
new java.lang.String[] { "SelfConfidence", "Id", "State", });
|
||||
new java.lang.String[] { "Id", "State", "SelfConfidence", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user