mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 08:43:50 +08:00
Add new protocol definitions
This commit is contained in:
@@ -18,29 +18,6 @@ public final class AchievementOuterClass {
|
||||
// @@protoc_insertion_point(interface_extends:Achievement)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
int getId();
|
||||
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
int getStatusValue();
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
emu.grasscutter.net.proto.StatusOuterClass.Status getStatus();
|
||||
|
||||
/**
|
||||
* <code>uint32 total_progress = 14;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
int getTotalProgress();
|
||||
|
||||
/**
|
||||
* <code>uint32 finish_timestamp = 15;</code>
|
||||
* @return The finishTimestamp.
|
||||
@@ -48,14 +25,37 @@ public final class AchievementOuterClass {
|
||||
int getFinishTimestamp();
|
||||
|
||||
/**
|
||||
* <code>uint32 cur_progress = 5;</code>
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
int getStatusValue();
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB getStatus();
|
||||
|
||||
/**
|
||||
* <code>uint32 total_progress = 4;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
int getTotalProgress();
|
||||
|
||||
/**
|
||||
* <code>uint32 cur_progress = 14;</code>
|
||||
* @return The curProgress.
|
||||
*/
|
||||
int getCurProgress();
|
||||
|
||||
/**
|
||||
* <code>uint32 id = 5;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
int getId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: LPAPJAKPDJO
|
||||
* Obf: NJOHADFBICH
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code Achievement}
|
||||
@@ -103,14 +103,14 @@ public final class AchievementOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 24: {
|
||||
case 32: {
|
||||
|
||||
id_ = input.readUInt32();
|
||||
totalProgress_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
|
||||
curProgress_ = input.readUInt32();
|
||||
id_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
@@ -121,7 +121,7 @@ public final class AchievementOuterClass {
|
||||
}
|
||||
case 112: {
|
||||
|
||||
totalProgress_ = input.readUInt32();
|
||||
curProgress_ = input.readUInt32();
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
@@ -161,45 +161,130 @@ public final class AchievementOuterClass {
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement.class, emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ID_FIELD_NUMBER = 3;
|
||||
private int id_;
|
||||
/**
|
||||
* <code>uint32 id = 3;</code>
|
||||
* @return The id.
|
||||
* Protobuf enum {@code Achievement.KNKEIELCCDB}
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getId() {
|
||||
return id_;
|
||||
}
|
||||
public enum KNKEIELCCDB
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Invalid = 0;</code>
|
||||
*/
|
||||
OPFLKOJMOIG_Invalid(0),
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Unfinished = 1;</code>
|
||||
*/
|
||||
OPFLKOJMOIG_Unfinished(1),
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Finished = 2;</code>
|
||||
*/
|
||||
OPFLKOJMOIG_Finished(2),
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_RewardTaken = 3;</code>
|
||||
*/
|
||||
OPFLKOJMOIG_RewardTaken(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
public static final int STATUS_FIELD_NUMBER = 10;
|
||||
private int status_;
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
@java.lang.Override public int getStatusValue() {
|
||||
return status_;
|
||||
}
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
@java.lang.Override public emu.grasscutter.net.proto.StatusOuterClass.Status getStatus() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.StatusOuterClass.Status result = emu.grasscutter.net.proto.StatusOuterClass.Status.valueOf(status_);
|
||||
return result == null ? emu.grasscutter.net.proto.StatusOuterClass.Status.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Invalid = 0;</code>
|
||||
*/
|
||||
public static final int OPFLKOJMOIG_Invalid_VALUE = 0;
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Unfinished = 1;</code>
|
||||
*/
|
||||
public static final int OPFLKOJMOIG_Unfinished_VALUE = 1;
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_Finished = 2;</code>
|
||||
*/
|
||||
public static final int OPFLKOJMOIG_Finished_VALUE = 2;
|
||||
/**
|
||||
* <code>OPFLKOJMOIG_RewardTaken = 3;</code>
|
||||
*/
|
||||
public static final int OPFLKOJMOIG_RewardTaken_VALUE = 3;
|
||||
|
||||
public static final int TOTAL_PROGRESS_FIELD_NUMBER = 14;
|
||||
private int totalProgress_;
|
||||
/**
|
||||
* <code>uint32 total_progress = 14;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTotalProgress() {
|
||||
return totalProgress_;
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static KNKEIELCCDB valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static KNKEIELCCDB forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return OPFLKOJMOIG_Invalid;
|
||||
case 1: return OPFLKOJMOIG_Unfinished;
|
||||
case 2: return OPFLKOJMOIG_Finished;
|
||||
case 3: return OPFLKOJMOIG_RewardTaken;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<KNKEIELCCDB>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
KNKEIELCCDB> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<KNKEIELCCDB>() {
|
||||
public KNKEIELCCDB findValueByNumber(int number) {
|
||||
return KNKEIELCCDB.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final KNKEIELCCDB[] VALUES = values();
|
||||
|
||||
public static KNKEIELCCDB valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private KNKEIELCCDB(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:Achievement.KNKEIELCCDB)
|
||||
}
|
||||
|
||||
public static final int FINISH_TIMESTAMP_FIELD_NUMBER = 15;
|
||||
@@ -213,10 +298,40 @@ public final class AchievementOuterClass {
|
||||
return finishTimestamp_;
|
||||
}
|
||||
|
||||
public static final int CUR_PROGRESS_FIELD_NUMBER = 5;
|
||||
public static final int STATUS_FIELD_NUMBER = 10;
|
||||
private int status_;
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
@java.lang.Override public int getStatusValue() {
|
||||
return status_;
|
||||
}
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
@java.lang.Override public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB getStatus() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB result = emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.valueOf(status_);
|
||||
return result == null ? emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int TOTAL_PROGRESS_FIELD_NUMBER = 4;
|
||||
private int totalProgress_;
|
||||
/**
|
||||
* <code>uint32 total_progress = 4;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTotalProgress() {
|
||||
return totalProgress_;
|
||||
}
|
||||
|
||||
public static final int CUR_PROGRESS_FIELD_NUMBER = 14;
|
||||
private int curProgress_;
|
||||
/**
|
||||
* <code>uint32 cur_progress = 5;</code>
|
||||
* <code>uint32 cur_progress = 14;</code>
|
||||
* @return The curProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -224,6 +339,17 @@ public final class AchievementOuterClass {
|
||||
return curProgress_;
|
||||
}
|
||||
|
||||
public static final int ID_FIELD_NUMBER = 5;
|
||||
private int id_;
|
||||
/**
|
||||
* <code>uint32 id = 5;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getId() {
|
||||
return id_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -238,17 +364,17 @@ public final class AchievementOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (totalProgress_ != 0) {
|
||||
output.writeUInt32(4, totalProgress_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
output.writeUInt32(3, id_);
|
||||
output.writeUInt32(5, id_);
|
||||
}
|
||||
if (curProgress_ != 0) {
|
||||
output.writeUInt32(5, curProgress_);
|
||||
}
|
||||
if (status_ != emu.grasscutter.net.proto.StatusOuterClass.Status.STATUS_INVALID.getNumber()) {
|
||||
if (status_ != emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.OPFLKOJMOIG_Invalid.getNumber()) {
|
||||
output.writeEnum(10, status_);
|
||||
}
|
||||
if (totalProgress_ != 0) {
|
||||
output.writeUInt32(14, totalProgress_);
|
||||
if (curProgress_ != 0) {
|
||||
output.writeUInt32(14, curProgress_);
|
||||
}
|
||||
if (finishTimestamp_ != 0) {
|
||||
output.writeUInt32(15, finishTimestamp_);
|
||||
@@ -262,21 +388,21 @@ public final class AchievementOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (totalProgress_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(4, totalProgress_);
|
||||
}
|
||||
if (id_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, id_);
|
||||
.computeUInt32Size(5, id_);
|
||||
}
|
||||
if (curProgress_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(5, curProgress_);
|
||||
}
|
||||
if (status_ != emu.grasscutter.net.proto.StatusOuterClass.Status.STATUS_INVALID.getNumber()) {
|
||||
if (status_ != emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.OPFLKOJMOIG_Invalid.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(10, status_);
|
||||
}
|
||||
if (totalProgress_ != 0) {
|
||||
if (curProgress_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(14, totalProgress_);
|
||||
.computeUInt32Size(14, curProgress_);
|
||||
}
|
||||
if (finishTimestamp_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
@@ -297,15 +423,15 @@ public final class AchievementOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement other = (emu.grasscutter.net.proto.AchievementOuterClass.Achievement) obj;
|
||||
|
||||
if (getId()
|
||||
!= other.getId()) return false;
|
||||
if (getFinishTimestamp()
|
||||
!= other.getFinishTimestamp()) return false;
|
||||
if (status_ != other.status_) return false;
|
||||
if (getTotalProgress()
|
||||
!= other.getTotalProgress()) return false;
|
||||
if (getFinishTimestamp()
|
||||
!= other.getFinishTimestamp()) return false;
|
||||
if (getCurProgress()
|
||||
!= other.getCurProgress()) return false;
|
||||
if (getId()
|
||||
!= other.getId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -317,16 +443,16 @@ public final class AchievementOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getId();
|
||||
hash = (37 * hash) + FINISH_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFinishTimestamp();
|
||||
hash = (37 * hash) + STATUS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + status_;
|
||||
hash = (37 * hash) + TOTAL_PROGRESS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTotalProgress();
|
||||
hash = (37 * hash) + FINISH_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFinishTimestamp();
|
||||
hash = (37 * hash) + CUR_PROGRESS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCurProgress();
|
||||
hash = (37 * hash) + ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -424,7 +550,7 @@ public final class AchievementOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Obf: LPAPJAKPDJO
|
||||
* Obf: NJOHADFBICH
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code Achievement}
|
||||
@@ -464,16 +590,16 @@ public final class AchievementOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
id_ = 0;
|
||||
finishTimestamp_ = 0;
|
||||
|
||||
status_ = 0;
|
||||
|
||||
totalProgress_ = 0;
|
||||
|
||||
finishTimestamp_ = 0;
|
||||
|
||||
curProgress_ = 0;
|
||||
|
||||
id_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -500,11 +626,11 @@ public final class AchievementOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AchievementOuterClass.Achievement buildPartial() {
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement result = new emu.grasscutter.net.proto.AchievementOuterClass.Achievement(this);
|
||||
result.id_ = id_;
|
||||
result.finishTimestamp_ = finishTimestamp_;
|
||||
result.status_ = status_;
|
||||
result.totalProgress_ = totalProgress_;
|
||||
result.finishTimestamp_ = finishTimestamp_;
|
||||
result.curProgress_ = curProgress_;
|
||||
result.id_ = id_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -553,8 +679,8 @@ public final class AchievementOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.AchievementOuterClass.Achievement other) {
|
||||
if (other == emu.grasscutter.net.proto.AchievementOuterClass.Achievement.getDefaultInstance()) return this;
|
||||
if (other.getId() != 0) {
|
||||
setId(other.getId());
|
||||
if (other.getFinishTimestamp() != 0) {
|
||||
setFinishTimestamp(other.getFinishTimestamp());
|
||||
}
|
||||
if (other.status_ != 0) {
|
||||
setStatusValue(other.getStatusValue());
|
||||
@@ -562,12 +688,12 @@ public final class AchievementOuterClass {
|
||||
if (other.getTotalProgress() != 0) {
|
||||
setTotalProgress(other.getTotalProgress());
|
||||
}
|
||||
if (other.getFinishTimestamp() != 0) {
|
||||
setFinishTimestamp(other.getFinishTimestamp());
|
||||
}
|
||||
if (other.getCurProgress() != 0) {
|
||||
setCurProgress(other.getCurProgress());
|
||||
}
|
||||
if (other.getId() != 0) {
|
||||
setId(other.getId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -597,122 +723,6 @@ public final class AchievementOuterClass {
|
||||
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 int status_ = 0;
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
@java.lang.Override public int getStatusValue() {
|
||||
return status_;
|
||||
}
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @param value The enum numeric value on the wire for status to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStatusValue(int value) {
|
||||
|
||||
status_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.StatusOuterClass.Status getStatus() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.StatusOuterClass.Status result = emu.grasscutter.net.proto.StatusOuterClass.Status.valueOf(status_);
|
||||
return result == null ? emu.grasscutter.net.proto.StatusOuterClass.Status.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @param value The status to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStatus(emu.grasscutter.net.proto.StatusOuterClass.Status value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
status_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Status status = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStatus() {
|
||||
|
||||
status_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int totalProgress_ ;
|
||||
/**
|
||||
* <code>uint32 total_progress = 14;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTotalProgress() {
|
||||
return totalProgress_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 total_progress = 14;</code>
|
||||
* @param value The totalProgress to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTotalProgress(int value) {
|
||||
|
||||
totalProgress_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 total_progress = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTotalProgress() {
|
||||
|
||||
totalProgress_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int finishTimestamp_ ;
|
||||
/**
|
||||
* <code>uint32 finish_timestamp = 15;</code>
|
||||
@@ -744,9 +754,94 @@ public final class AchievementOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int status_ = 0;
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The enum numeric value on the wire for status.
|
||||
*/
|
||||
@java.lang.Override public int getStatusValue() {
|
||||
return status_;
|
||||
}
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @param value The enum numeric value on the wire for status to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStatusValue(int value) {
|
||||
|
||||
status_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return The status.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB getStatus() {
|
||||
@SuppressWarnings("deprecation")
|
||||
emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB result = emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.valueOf(status_);
|
||||
return result == null ? emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @param value The status to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStatus(emu.grasscutter.net.proto.AchievementOuterClass.Achievement.KNKEIELCCDB value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
status_ = value.getNumber();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Achievement.KNKEIELCCDB status = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStatus() {
|
||||
|
||||
status_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int totalProgress_ ;
|
||||
/**
|
||||
* <code>uint32 total_progress = 4;</code>
|
||||
* @return The totalProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTotalProgress() {
|
||||
return totalProgress_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 total_progress = 4;</code>
|
||||
* @param value The totalProgress to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTotalProgress(int value) {
|
||||
|
||||
totalProgress_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 total_progress = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTotalProgress() {
|
||||
|
||||
totalProgress_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int curProgress_ ;
|
||||
/**
|
||||
* <code>uint32 cur_progress = 5;</code>
|
||||
* <code>uint32 cur_progress = 14;</code>
|
||||
* @return The curProgress.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -754,7 +849,7 @@ public final class AchievementOuterClass {
|
||||
return curProgress_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 cur_progress = 5;</code>
|
||||
* <code>uint32 cur_progress = 14;</code>
|
||||
* @param value The curProgress to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -765,7 +860,7 @@ public final class AchievementOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 cur_progress = 5;</code>
|
||||
* <code>uint32 cur_progress = 14;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCurProgress() {
|
||||
@@ -774,6 +869,37 @@ public final class AchievementOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int id_ ;
|
||||
/**
|
||||
* <code>uint32 id = 5;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getId() {
|
||||
return id_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 id = 5;</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 = 5;</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) {
|
||||
@@ -841,24 +967,26 @@ public final class AchievementOuterClass {
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\021Achievement.proto\032\014Status.proto\"z\n\013Ach" +
|
||||
"ievement\022\n\n\002id\030\003 \001(\r\022\027\n\006status\030\n \001(\0162\007.S" +
|
||||
"tatus\022\026\n\016total_progress\030\016 \001(\r\022\030\n\020finish_" +
|
||||
"timestamp\030\017 \001(\r\022\024\n\014cur_progress\030\005 \001(\rB\033\n" +
|
||||
"\031emu.grasscutter.net.protob\006proto3"
|
||||
"\n\021Achievement.proto\"\206\002\n\013Achievement\022\030\n\020f" +
|
||||
"inish_timestamp\030\017 \001(\r\022(\n\006status\030\n \001(\0162\030." +
|
||||
"Achievement.KNKEIELCCDB\022\026\n\016total_progres" +
|
||||
"s\030\004 \001(\r\022\024\n\014cur_progress\030\016 \001(\r\022\n\n\002id\030\005 \001(" +
|
||||
"\r\"y\n\013KNKEIELCCDB\022\027\n\023OPFLKOJMOIG_Invalid\020" +
|
||||
"\000\022\032\n\026OPFLKOJMOIG_Unfinished\020\001\022\030\n\024OPFLKOJ" +
|
||||
"MOIG_Finished\020\002\022\033\n\027OPFLKOJMOIG_RewardTak" +
|
||||
"en\020\003B\033\n\031emu.grasscutter.net.protob\006proto" +
|
||||
"3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
emu.grasscutter.net.proto.StatusOuterClass.getDescriptor(),
|
||||
});
|
||||
internal_static_Achievement_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_Achievement_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_Achievement_descriptor,
|
||||
new java.lang.String[] { "Id", "Status", "TotalProgress", "FinishTimestamp", "CurProgress", });
|
||||
emu.grasscutter.net.proto.StatusOuterClass.getDescriptor();
|
||||
new java.lang.String[] { "FinishTimestamp", "Status", "TotalProgress", "CurProgress", "Id", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user