Add support for v3.5.0 (#2090)

* Fix Dvalin battle

See https://github.com/Anime-Game-Servers/Grasscutter-Quests/pull/25.

This is entirely untested and there's a 99% chance it's broken, I'm just submitting it as a draft PR so that I don't forget about its existence.

Co-Authored-By: mjolsic <21289772+mjolsic@users.noreply.github.com>

* Update protos

* 3.4 protos

* Fix

Now builds successfully, don't have the time to check if I should have specified true instead of false for withChildQuests, or if this functions as intended.

* Change from false to true

Per what smileoflove has been told on Discord

* 3.5

* Remove the Dvalin crap from this PR

Git is so confusing

* Update version

* Apply README changes from `origin/development`

* Remove unnecessary debugging information

---------

Co-authored-by: mjolsic <21289772+mjolsic@users.noreply.github.com>
Co-authored-by: KingRainbow44 <kobedo11@gmail.com>
This commit is contained in:
Colleiflower
2023-03-31 19:13:32 +00:00
committed by GitHub
Unverified
parent 922f7bca51
commit 516e5975e1
1383 changed files with 167226 additions and 586936 deletions
@@ -1,961 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EffigyDailyInfo.proto
package emu.grasscutter.net.proto;
public final class EffigyDailyInfoOuterClass {
private EffigyDailyInfoOuterClass() {}
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 EffigyDailyInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:EffigyDailyInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 challengeId = 15;</code>
* @return The challengeId.
*/
int getChallengeId();
/**
* <code>bool isFirstPassRewardTaken = 2;</code>
* @return The isFirstPassRewardTaken.
*/
boolean getIsFirstPassRewardTaken();
/**
* <code>uint32 Unk3300_NEBCDALEFEC = 10;</code>
* @return The unk3300NEBCDALEFEC.
*/
int getUnk3300NEBCDALEFEC();
/**
* <code>uint32 dayIndex = 14;</code>
* @return The dayIndex.
*/
int getDayIndex();
/**
* <code>uint32 challengeMaxScore = 6;</code>
* @return The challengeMaxScore.
*/
int getChallengeMaxScore();
/**
* <code>uint32 beginTime = 7;</code>
* @return The beginTime.
*/
int getBeginTime();
/**
* <code>uint32 Unk3300_NNHICCGELHP = 12;</code>
* @return The unk3300NNHICCGELHP.
*/
int getUnk3300NNHICCGELHP();
}
/**
* Protobuf type {@code EffigyDailyInfo}
*/
public static final class EffigyDailyInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:EffigyDailyInfo)
EffigyDailyInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use EffigyDailyInfo.newBuilder() to construct.
private EffigyDailyInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EffigyDailyInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EffigyDailyInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EffigyDailyInfo(
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 16: {
isFirstPassRewardTaken_ = input.readBool();
break;
}
case 48: {
challengeMaxScore_ = input.readUInt32();
break;
}
case 56: {
beginTime_ = input.readUInt32();
break;
}
case 80: {
unk3300NEBCDALEFEC_ = input.readUInt32();
break;
}
case 96: {
unk3300NNHICCGELHP_ = input.readUInt32();
break;
}
case 112: {
dayIndex_ = input.readUInt32();
break;
}
case 120: {
challengeId_ = 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.EffigyDailyInfoOuterClass.internal_static_EffigyDailyInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.internal_static_EffigyDailyInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.class, emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.Builder.class);
}
public static final int CHALLENGEID_FIELD_NUMBER = 15;
private int challengeId_;
/**
* <code>uint32 challengeId = 15;</code>
* @return The challengeId.
*/
@java.lang.Override
public int getChallengeId() {
return challengeId_;
}
public static final int ISFIRSTPASSREWARDTAKEN_FIELD_NUMBER = 2;
private boolean isFirstPassRewardTaken_;
/**
* <code>bool isFirstPassRewardTaken = 2;</code>
* @return The isFirstPassRewardTaken.
*/
@java.lang.Override
public boolean getIsFirstPassRewardTaken() {
return isFirstPassRewardTaken_;
}
public static final int UNK3300_NEBCDALEFEC_FIELD_NUMBER = 10;
private int unk3300NEBCDALEFEC_;
/**
* <code>uint32 Unk3300_NEBCDALEFEC = 10;</code>
* @return The unk3300NEBCDALEFEC.
*/
@java.lang.Override
public int getUnk3300NEBCDALEFEC() {
return unk3300NEBCDALEFEC_;
}
public static final int DAYINDEX_FIELD_NUMBER = 14;
private int dayIndex_;
/**
* <code>uint32 dayIndex = 14;</code>
* @return The dayIndex.
*/
@java.lang.Override
public int getDayIndex() {
return dayIndex_;
}
public static final int CHALLENGEMAXSCORE_FIELD_NUMBER = 6;
private int challengeMaxScore_;
/**
* <code>uint32 challengeMaxScore = 6;</code>
* @return The challengeMaxScore.
*/
@java.lang.Override
public int getChallengeMaxScore() {
return challengeMaxScore_;
}
public static final int BEGINTIME_FIELD_NUMBER = 7;
private int beginTime_;
/**
* <code>uint32 beginTime = 7;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
public static final int UNK3300_NNHICCGELHP_FIELD_NUMBER = 12;
private int unk3300NNHICCGELHP_;
/**
* <code>uint32 Unk3300_NNHICCGELHP = 12;</code>
* @return The unk3300NNHICCGELHP.
*/
@java.lang.Override
public int getUnk3300NNHICCGELHP() {
return unk3300NNHICCGELHP_;
}
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 (isFirstPassRewardTaken_ != false) {
output.writeBool(2, isFirstPassRewardTaken_);
}
if (challengeMaxScore_ != 0) {
output.writeUInt32(6, challengeMaxScore_);
}
if (beginTime_ != 0) {
output.writeUInt32(7, beginTime_);
}
if (unk3300NEBCDALEFEC_ != 0) {
output.writeUInt32(10, unk3300NEBCDALEFEC_);
}
if (unk3300NNHICCGELHP_ != 0) {
output.writeUInt32(12, unk3300NNHICCGELHP_);
}
if (dayIndex_ != 0) {
output.writeUInt32(14, dayIndex_);
}
if (challengeId_ != 0) {
output.writeUInt32(15, challengeId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isFirstPassRewardTaken_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isFirstPassRewardTaken_);
}
if (challengeMaxScore_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, challengeMaxScore_);
}
if (beginTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, beginTime_);
}
if (unk3300NEBCDALEFEC_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, unk3300NEBCDALEFEC_);
}
if (unk3300NNHICCGELHP_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, unk3300NNHICCGELHP_);
}
if (dayIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, dayIndex_);
}
if (challengeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, challengeId_);
}
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.EffigyDailyInfoOuterClass.EffigyDailyInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo other = (emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo) obj;
if (getChallengeId()
!= other.getChallengeId()) return false;
if (getIsFirstPassRewardTaken()
!= other.getIsFirstPassRewardTaken()) return false;
if (getUnk3300NEBCDALEFEC()
!= other.getUnk3300NEBCDALEFEC()) return false;
if (getDayIndex()
!= other.getDayIndex()) return false;
if (getChallengeMaxScore()
!= other.getChallengeMaxScore()) return false;
if (getBeginTime()
!= other.getBeginTime()) return false;
if (getUnk3300NNHICCGELHP()
!= other.getUnk3300NNHICCGELHP()) 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) + CHALLENGEID_FIELD_NUMBER;
hash = (53 * hash) + getChallengeId();
hash = (37 * hash) + ISFIRSTPASSREWARDTAKEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsFirstPassRewardTaken());
hash = (37 * hash) + UNK3300_NEBCDALEFEC_FIELD_NUMBER;
hash = (53 * hash) + getUnk3300NEBCDALEFEC();
hash = (37 * hash) + DAYINDEX_FIELD_NUMBER;
hash = (53 * hash) + getDayIndex();
hash = (37 * hash) + CHALLENGEMAXSCORE_FIELD_NUMBER;
hash = (53 * hash) + getChallengeMaxScore();
hash = (37 * hash) + BEGINTIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime();
hash = (37 * hash) + UNK3300_NNHICCGELHP_FIELD_NUMBER;
hash = (53 * hash) + getUnk3300NNHICCGELHP();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo 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.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo 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.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo 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.EffigyDailyInfoOuterClass.EffigyDailyInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo 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.EffigyDailyInfoOuterClass.EffigyDailyInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo 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.EffigyDailyInfoOuterClass.EffigyDailyInfo 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 EffigyDailyInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:EffigyDailyInfo)
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.internal_static_EffigyDailyInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.internal_static_EffigyDailyInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.class, emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.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();
challengeId_ = 0;
isFirstPassRewardTaken_ = false;
unk3300NEBCDALEFEC_ = 0;
dayIndex_ = 0;
challengeMaxScore_ = 0;
beginTime_ = 0;
unk3300NNHICCGELHP_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.internal_static_EffigyDailyInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo build() {
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo buildPartial() {
emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo result = new emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo(this);
result.challengeId_ = challengeId_;
result.isFirstPassRewardTaken_ = isFirstPassRewardTaken_;
result.unk3300NEBCDALEFEC_ = unk3300NEBCDALEFEC_;
result.dayIndex_ = dayIndex_;
result.challengeMaxScore_ = challengeMaxScore_;
result.beginTime_ = beginTime_;
result.unk3300NNHICCGELHP_ = unk3300NNHICCGELHP_;
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.EffigyDailyInfoOuterClass.EffigyDailyInfo) {
return mergeFrom((emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo other) {
if (other == emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo.getDefaultInstance()) return this;
if (other.getChallengeId() != 0) {
setChallengeId(other.getChallengeId());
}
if (other.getIsFirstPassRewardTaken() != false) {
setIsFirstPassRewardTaken(other.getIsFirstPassRewardTaken());
}
if (other.getUnk3300NEBCDALEFEC() != 0) {
setUnk3300NEBCDALEFEC(other.getUnk3300NEBCDALEFEC());
}
if (other.getDayIndex() != 0) {
setDayIndex(other.getDayIndex());
}
if (other.getChallengeMaxScore() != 0) {
setChallengeMaxScore(other.getChallengeMaxScore());
}
if (other.getBeginTime() != 0) {
setBeginTime(other.getBeginTime());
}
if (other.getUnk3300NNHICCGELHP() != 0) {
setUnk3300NNHICCGELHP(other.getUnk3300NNHICCGELHP());
}
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.EffigyDailyInfoOuterClass.EffigyDailyInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int challengeId_ ;
/**
* <code>uint32 challengeId = 15;</code>
* @return The challengeId.
*/
@java.lang.Override
public int getChallengeId() {
return challengeId_;
}
/**
* <code>uint32 challengeId = 15;</code>
* @param value The challengeId to set.
* @return This builder for chaining.
*/
public Builder setChallengeId(int value) {
challengeId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 challengeId = 15;</code>
* @return This builder for chaining.
*/
public Builder clearChallengeId() {
challengeId_ = 0;
onChanged();
return this;
}
private boolean isFirstPassRewardTaken_ ;
/**
* <code>bool isFirstPassRewardTaken = 2;</code>
* @return The isFirstPassRewardTaken.
*/
@java.lang.Override
public boolean getIsFirstPassRewardTaken() {
return isFirstPassRewardTaken_;
}
/**
* <code>bool isFirstPassRewardTaken = 2;</code>
* @param value The isFirstPassRewardTaken to set.
* @return This builder for chaining.
*/
public Builder setIsFirstPassRewardTaken(boolean value) {
isFirstPassRewardTaken_ = value;
onChanged();
return this;
}
/**
* <code>bool isFirstPassRewardTaken = 2;</code>
* @return This builder for chaining.
*/
public Builder clearIsFirstPassRewardTaken() {
isFirstPassRewardTaken_ = false;
onChanged();
return this;
}
private int unk3300NEBCDALEFEC_ ;
/**
* <code>uint32 Unk3300_NEBCDALEFEC = 10;</code>
* @return The unk3300NEBCDALEFEC.
*/
@java.lang.Override
public int getUnk3300NEBCDALEFEC() {
return unk3300NEBCDALEFEC_;
}
/**
* <code>uint32 Unk3300_NEBCDALEFEC = 10;</code>
* @param value The unk3300NEBCDALEFEC to set.
* @return This builder for chaining.
*/
public Builder setUnk3300NEBCDALEFEC(int value) {
unk3300NEBCDALEFEC_ = value;
onChanged();
return this;
}
/**
* <code>uint32 Unk3300_NEBCDALEFEC = 10;</code>
* @return This builder for chaining.
*/
public Builder clearUnk3300NEBCDALEFEC() {
unk3300NEBCDALEFEC_ = 0;
onChanged();
return this;
}
private int dayIndex_ ;
/**
* <code>uint32 dayIndex = 14;</code>
* @return The dayIndex.
*/
@java.lang.Override
public int getDayIndex() {
return dayIndex_;
}
/**
* <code>uint32 dayIndex = 14;</code>
* @param value The dayIndex to set.
* @return This builder for chaining.
*/
public Builder setDayIndex(int value) {
dayIndex_ = value;
onChanged();
return this;
}
/**
* <code>uint32 dayIndex = 14;</code>
* @return This builder for chaining.
*/
public Builder clearDayIndex() {
dayIndex_ = 0;
onChanged();
return this;
}
private int challengeMaxScore_ ;
/**
* <code>uint32 challengeMaxScore = 6;</code>
* @return The challengeMaxScore.
*/
@java.lang.Override
public int getChallengeMaxScore() {
return challengeMaxScore_;
}
/**
* <code>uint32 challengeMaxScore = 6;</code>
* @param value The challengeMaxScore to set.
* @return This builder for chaining.
*/
public Builder setChallengeMaxScore(int value) {
challengeMaxScore_ = value;
onChanged();
return this;
}
/**
* <code>uint32 challengeMaxScore = 6;</code>
* @return This builder for chaining.
*/
public Builder clearChallengeMaxScore() {
challengeMaxScore_ = 0;
onChanged();
return this;
}
private int beginTime_ ;
/**
* <code>uint32 beginTime = 7;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
/**
* <code>uint32 beginTime = 7;</code>
* @param value The beginTime to set.
* @return This builder for chaining.
*/
public Builder setBeginTime(int value) {
beginTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 beginTime = 7;</code>
* @return This builder for chaining.
*/
public Builder clearBeginTime() {
beginTime_ = 0;
onChanged();
return this;
}
private int unk3300NNHICCGELHP_ ;
/**
* <code>uint32 Unk3300_NNHICCGELHP = 12;</code>
* @return The unk3300NNHICCGELHP.
*/
@java.lang.Override
public int getUnk3300NNHICCGELHP() {
return unk3300NNHICCGELHP_;
}
/**
* <code>uint32 Unk3300_NNHICCGELHP = 12;</code>
* @param value The unk3300NNHICCGELHP to set.
* @return This builder for chaining.
*/
public Builder setUnk3300NNHICCGELHP(int value) {
unk3300NNHICCGELHP_ = value;
onChanged();
return this;
}
/**
* <code>uint32 Unk3300_NNHICCGELHP = 12;</code>
* @return This builder for chaining.
*/
public Builder clearUnk3300NNHICCGELHP() {
unk3300NNHICCGELHP_ = 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:EffigyDailyInfo)
}
// @@protoc_insertion_point(class_scope:EffigyDailyInfo)
private static final emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo();
}
public static emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EffigyDailyInfo>
PARSER = new com.google.protobuf.AbstractParser<EffigyDailyInfo>() {
@java.lang.Override
public EffigyDailyInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EffigyDailyInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<EffigyDailyInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EffigyDailyInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.EffigyDailyInfoOuterClass.EffigyDailyInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_EffigyDailyInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_EffigyDailyInfo_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\025EffigyDailyInfo.proto\"\300\001\n\017EffigyDailyI" +
"nfo\022\023\n\013challengeId\030\017 \001(\r\022\036\n\026isFirstPassR" +
"ewardTaken\030\002 \001(\010\022\033\n\023Unk3300_NEBCDALEFEC\030" +
"\n \001(\r\022\020\n\010dayIndex\030\016 \001(\r\022\031\n\021challengeMaxS" +
"core\030\006 \001(\r\022\021\n\tbeginTime\030\007 \001(\r\022\033\n\023Unk3300" +
"_NNHICCGELHP\030\014 \001(\rB\033\n\031emu.grasscutter.ne" +
"t.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_EffigyDailyInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_EffigyDailyInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_EffigyDailyInfo_descriptor,
new java.lang.String[] { "ChallengeId", "IsFirstPassRewardTaken", "Unk3300NEBCDALEFEC", "DayIndex", "ChallengeMaxScore", "BeginTime", "Unk3300NNHICCGELHP", });
}
// @@protoc_insertion_point(outer_class_scope)
}