mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-13 20:22:45 +08:00
986 lines
33 KiB
Java
986 lines
33 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: AchievementInfo.proto
|
|
|
|
package emu.grasscutter.net.proto;
|
|
|
|
public final class AchievementInfoOuterClass {
|
|
private AchievementInfoOuterClass() {}
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
}
|
|
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
registerAllExtensions(
|
|
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
}
|
|
public interface AchievementInfoOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:AchievementInfo)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>uint32 id = 1;</code>
|
|
* @return The id.
|
|
*/
|
|
int getId();
|
|
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The enum numeric value on the wire for status.
|
|
*/
|
|
int getStatusValue();
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The status.
|
|
*/
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus getStatus();
|
|
|
|
/**
|
|
* <code>uint32 current = 3;</code>
|
|
* @return The current.
|
|
*/
|
|
int getCurrent();
|
|
|
|
/**
|
|
* <code>uint32 goal = 4;</code>
|
|
* @return The goal.
|
|
*/
|
|
int getGoal();
|
|
|
|
/**
|
|
* <code>uint32 achievedate = 5;</code>
|
|
* @return The achievedate.
|
|
*/
|
|
int getAchievedate();
|
|
}
|
|
/**
|
|
* Protobuf type {@code AchievementInfo}
|
|
*/
|
|
public static final class AchievementInfo extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:AchievementInfo)
|
|
AchievementInfoOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use AchievementInfo.newBuilder() to construct.
|
|
private AchievementInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private AchievementInfo() {
|
|
status_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
@SuppressWarnings({"unused"})
|
|
protected java.lang.Object newInstance(
|
|
UnusedPrivateParameter unused) {
|
|
return new AchievementInfo();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private AchievementInfo(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
if (extensionRegistry == null) {
|
|
throw new java.lang.NullPointerException();
|
|
}
|
|
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
try {
|
|
boolean done = false;
|
|
while (!done) {
|
|
int tag = input.readTag();
|
|
switch (tag) {
|
|
case 0:
|
|
done = true;
|
|
break;
|
|
case 8: {
|
|
|
|
id_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
int rawValue = input.readEnum();
|
|
|
|
status_ = rawValue;
|
|
break;
|
|
}
|
|
case 24: {
|
|
|
|
current_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
|
|
goal_ = input.readUInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
|
|
achievedate_ = input.readUInt32();
|
|
break;
|
|
}
|
|
default: {
|
|
if (!parseUnknownField(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e).setUnfinishedMessage(this);
|
|
} finally {
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.internal_static_AchievementInfo_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.internal_static_AchievementInfo_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.class, emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.Builder.class);
|
|
}
|
|
|
|
/**
|
|
* Protobuf enum {@code AchievementInfo.AchievementInfoStatus}
|
|
*/
|
|
public enum AchievementInfoStatus
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <code>ACHIEVEMENT_INVALID = 0;</code>
|
|
*/
|
|
ACHIEVEMENT_INVALID(0),
|
|
/**
|
|
* <code>ACHIEVEMENT_UNFINISHED = 1;</code>
|
|
*/
|
|
ACHIEVEMENT_UNFINISHED(1),
|
|
/**
|
|
* <code>ACHIEVEMENT_FINISHED = 2;</code>
|
|
*/
|
|
ACHIEVEMENT_FINISHED(2),
|
|
/**
|
|
* <code>ACHIEVEMENT_POINT_TAKEN = 3;</code>
|
|
*/
|
|
ACHIEVEMENT_POINT_TAKEN(3),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <code>ACHIEVEMENT_INVALID = 0;</code>
|
|
*/
|
|
public static final int ACHIEVEMENT_INVALID_VALUE = 0;
|
|
/**
|
|
* <code>ACHIEVEMENT_UNFINISHED = 1;</code>
|
|
*/
|
|
public static final int ACHIEVEMENT_UNFINISHED_VALUE = 1;
|
|
/**
|
|
* <code>ACHIEVEMENT_FINISHED = 2;</code>
|
|
*/
|
|
public static final int ACHIEVEMENT_FINISHED_VALUE = 2;
|
|
/**
|
|
* <code>ACHIEVEMENT_POINT_TAKEN = 3;</code>
|
|
*/
|
|
public static final int ACHIEVEMENT_POINT_TAKEN_VALUE = 3;
|
|
|
|
|
|
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 AchievementInfoStatus 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 AchievementInfoStatus forNumber(int value) {
|
|
switch (value) {
|
|
case 0: return ACHIEVEMENT_INVALID;
|
|
case 1: return ACHIEVEMENT_UNFINISHED;
|
|
case 2: return ACHIEVEMENT_FINISHED;
|
|
case 3: return ACHIEVEMENT_POINT_TAKEN;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<AchievementInfoStatus>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
AchievementInfoStatus> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<AchievementInfoStatus>() {
|
|
public AchievementInfoStatus findValueByNumber(int number) {
|
|
return AchievementInfoStatus.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.AchievementInfoOuterClass.AchievementInfo.getDescriptor().getEnumTypes().get(0);
|
|
}
|
|
|
|
private static final AchievementInfoStatus[] VALUES = values();
|
|
|
|
public static AchievementInfoStatus 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 AchievementInfoStatus(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:AchievementInfo.AchievementInfoStatus)
|
|
}
|
|
|
|
public static final int ID_FIELD_NUMBER = 1;
|
|
private int id_;
|
|
/**
|
|
* <code>uint32 id = 1;</code>
|
|
* @return The id.
|
|
*/
|
|
@java.lang.Override
|
|
public int getId() {
|
|
return id_;
|
|
}
|
|
|
|
public static final int STATUS_FIELD_NUMBER = 2;
|
|
private int status_;
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The enum numeric value on the wire for status.
|
|
*/
|
|
@java.lang.Override public int getStatusValue() {
|
|
return status_;
|
|
}
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The status.
|
|
*/
|
|
@java.lang.Override public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus getStatus() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus result = emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.valueOf(status_);
|
|
return result == null ? emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.UNRECOGNIZED : result;
|
|
}
|
|
|
|
public static final int CURRENT_FIELD_NUMBER = 3;
|
|
private int current_;
|
|
/**
|
|
* <code>uint32 current = 3;</code>
|
|
* @return The current.
|
|
*/
|
|
@java.lang.Override
|
|
public int getCurrent() {
|
|
return current_;
|
|
}
|
|
|
|
public static final int GOAL_FIELD_NUMBER = 4;
|
|
private int goal_;
|
|
/**
|
|
* <code>uint32 goal = 4;</code>
|
|
* @return The goal.
|
|
*/
|
|
@java.lang.Override
|
|
public int getGoal() {
|
|
return goal_;
|
|
}
|
|
|
|
public static final int ACHIEVEDATE_FIELD_NUMBER = 5;
|
|
private int achievedate_;
|
|
/**
|
|
* <code>uint32 achievedate = 5;</code>
|
|
* @return The achievedate.
|
|
*/
|
|
@java.lang.Override
|
|
public int getAchievedate() {
|
|
return achievedate_;
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
@java.lang.Override
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (id_ != 0) {
|
|
output.writeUInt32(1, id_);
|
|
}
|
|
if (status_ != emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.ACHIEVEMENT_INVALID.getNumber()) {
|
|
output.writeEnum(2, status_);
|
|
}
|
|
if (current_ != 0) {
|
|
output.writeUInt32(3, current_);
|
|
}
|
|
if (goal_ != 0) {
|
|
output.writeUInt32(4, goal_);
|
|
}
|
|
if (achievedate_ != 0) {
|
|
output.writeUInt32(5, achievedate_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (id_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(1, id_);
|
|
}
|
|
if (status_ != emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.ACHIEVEMENT_INVALID.getNumber()) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeEnumSize(2, status_);
|
|
}
|
|
if (current_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(3, current_);
|
|
}
|
|
if (goal_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(4, goal_);
|
|
}
|
|
if (achievedate_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(5, achievedate_);
|
|
}
|
|
size += unknownFields.getSerializedSize();
|
|
memoizedSize = size;
|
|
return size;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public boolean equals(final java.lang.Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo)) {
|
|
return super.equals(obj);
|
|
}
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo other = (emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo) obj;
|
|
|
|
if (getId()
|
|
!= other.getId()) return false;
|
|
if (status_ != other.status_) return false;
|
|
if (getCurrent()
|
|
!= other.getCurrent()) return false;
|
|
if (getGoal()
|
|
!= other.getGoal()) return false;
|
|
if (getAchievedate()
|
|
!= other.getAchievedate()) return false;
|
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getId();
|
|
hash = (37 * hash) + STATUS_FIELD_NUMBER;
|
|
hash = (53 * hash) + status_;
|
|
hash = (37 * hash) + CURRENT_FIELD_NUMBER;
|
|
hash = (53 * hash) + getCurrent();
|
|
hash = (37 * hash) + GOAL_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGoal();
|
|
hash = (37 * hash) + ACHIEVEDATE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getAchievedate();
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
java.nio.ByteBuffer data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder() {
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
}
|
|
public static Builder newBuilder(emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
@java.lang.Override
|
|
public Builder toBuilder() {
|
|
return this == DEFAULT_INSTANCE
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected Builder newBuilderForType(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
Builder builder = new Builder(parent);
|
|
return builder;
|
|
}
|
|
/**
|
|
* Protobuf type {@code AchievementInfo}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:AchievementInfo)
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfoOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.internal_static_AchievementInfo_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.internal_static_AchievementInfo_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.class, emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.Builder.class);
|
|
}
|
|
|
|
// Construct using emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
}
|
|
}
|
|
@java.lang.Override
|
|
public Builder clear() {
|
|
super.clear();
|
|
id_ = 0;
|
|
|
|
status_ = 0;
|
|
|
|
current_ = 0;
|
|
|
|
goal_ = 0;
|
|
|
|
achievedate_ = 0;
|
|
|
|
return this;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.internal_static_AchievementInfo_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo getDefaultInstanceForType() {
|
|
return emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.getDefaultInstance();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo build() {
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo buildPartial() {
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo result = new emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo(this);
|
|
result.id_ = id_;
|
|
result.status_ = status_;
|
|
result.current_ = current_;
|
|
result.goal_ = goal_;
|
|
result.achievedate_ = achievedate_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder clone() {
|
|
return super.clone();
|
|
}
|
|
@java.lang.Override
|
|
public Builder setField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return super.setField(field, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder clearField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
return super.clearField(field);
|
|
}
|
|
@java.lang.Override
|
|
public Builder clearOneof(
|
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
return super.clearOneof(oneof);
|
|
}
|
|
@java.lang.Override
|
|
public Builder setRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
int index, java.lang.Object value) {
|
|
return super.setRepeatedField(field, index, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder addRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return super.addRepeatedField(field, value);
|
|
}
|
|
@java.lang.Override
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo) {
|
|
return mergeFrom((emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo other) {
|
|
if (other == emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.getDefaultInstance()) return this;
|
|
if (other.getId() != 0) {
|
|
setId(other.getId());
|
|
}
|
|
if (other.status_ != 0) {
|
|
setStatusValue(other.getStatusValue());
|
|
}
|
|
if (other.getCurrent() != 0) {
|
|
setCurrent(other.getCurrent());
|
|
}
|
|
if (other.getGoal() != 0) {
|
|
setGoal(other.getGoal());
|
|
}
|
|
if (other.getAchievedate() != 0) {
|
|
setAchievedate(other.getAchievedate());
|
|
}
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private int id_ ;
|
|
/**
|
|
* <code>uint32 id = 1;</code>
|
|
* @return The id.
|
|
*/
|
|
@java.lang.Override
|
|
public int getId() {
|
|
return id_;
|
|
}
|
|
/**
|
|
* <code>uint32 id = 1;</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 = 1;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearId() {
|
|
|
|
id_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int status_ = 0;
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The enum numeric value on the wire for status.
|
|
*/
|
|
@java.lang.Override public int getStatusValue() {
|
|
return status_;
|
|
}
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</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>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return The status.
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus getStatus() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus result = emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.valueOf(status_);
|
|
return result == null ? emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus.UNRECOGNIZED : result;
|
|
}
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @param value The status to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setStatus(emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo.AchievementInfoStatus value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
status_ = value.getNumber();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.AchievementInfo.AchievementInfoStatus status = 2;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearStatus() {
|
|
|
|
status_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int current_ ;
|
|
/**
|
|
* <code>uint32 current = 3;</code>
|
|
* @return The current.
|
|
*/
|
|
@java.lang.Override
|
|
public int getCurrent() {
|
|
return current_;
|
|
}
|
|
/**
|
|
* <code>uint32 current = 3;</code>
|
|
* @param value The current to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setCurrent(int value) {
|
|
|
|
current_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 current = 3;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearCurrent() {
|
|
|
|
current_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int goal_ ;
|
|
/**
|
|
* <code>uint32 goal = 4;</code>
|
|
* @return The goal.
|
|
*/
|
|
@java.lang.Override
|
|
public int getGoal() {
|
|
return goal_;
|
|
}
|
|
/**
|
|
* <code>uint32 goal = 4;</code>
|
|
* @param value The goal to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setGoal(int value) {
|
|
|
|
goal_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 goal = 4;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearGoal() {
|
|
|
|
goal_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private int achievedate_ ;
|
|
/**
|
|
* <code>uint32 achievedate = 5;</code>
|
|
* @return The achievedate.
|
|
*/
|
|
@java.lang.Override
|
|
public int getAchievedate() {
|
|
return achievedate_;
|
|
}
|
|
/**
|
|
* <code>uint32 achievedate = 5;</code>
|
|
* @param value The achievedate to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setAchievedate(int value) {
|
|
|
|
achievedate_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 achievedate = 5;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearAchievedate() {
|
|
|
|
achievedate_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
@java.lang.Override
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFields(unknownFields);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:AchievementInfo)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:AchievementInfo)
|
|
private static final emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo();
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<AchievementInfo>
|
|
PARSER = new com.google.protobuf.AbstractParser<AchievementInfo>() {
|
|
@java.lang.Override
|
|
public AchievementInfo parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new AchievementInfo(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<AchievementInfo> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<AchievementInfo> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.AchievementInfoOuterClass.AchievementInfo getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_AchievementInfo_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_AchievementInfo_fieldAccessorTable;
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
getDescriptor() {
|
|
return descriptor;
|
|
}
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
descriptor;
|
|
static {
|
|
java.lang.String[] descriptorData = {
|
|
"\n\025AchievementInfo.proto\"\217\002\n\017AchievementI" +
|
|
"nfo\022\n\n\002id\030\001 \001(\r\0226\n\006status\030\002 \001(\0162&.Achiev" +
|
|
"ementInfo.AchievementInfoStatus\022\017\n\007curre" +
|
|
"nt\030\003 \001(\r\022\014\n\004goal\030\004 \001(\r\022\023\n\013achievedate\030\005 " +
|
|
"\001(\r\"\203\001\n\025AchievementInfoStatus\022\027\n\023ACHIEVE" +
|
|
"MENT_INVALID\020\000\022\032\n\026ACHIEVEMENT_UNFINISHED" +
|
|
"\020\001\022\030\n\024ACHIEVEMENT_FINISHED\020\002\022\033\n\027ACHIEVEM" +
|
|
"ENT_POINT_TAKEN\020\003B\033\n\031emu.grasscutter.net" +
|
|
".protob\006proto3"
|
|
};
|
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
});
|
|
internal_static_AchievementInfo_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_AchievementInfo_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_AchievementInfo_descriptor,
|
|
new java.lang.String[] { "Id", "Status", "Current", "Goal", "Achievedate", });
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|