[Proto] Move Battlepass protos to MultiProto

This commit is contained in:
hartie95 2024-04-30 22:28:05 +02:00
parent bffaf4f956
commit 2fa8867db5
32 changed files with 122 additions and 14561 deletions

View File

@ -1,759 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassCurScheduleUpdateNotify.proto
package emu.grasscutter.net.proto;
public final class BattlePassCurScheduleUpdateNotifyOuterClass {
private BattlePassCurScheduleUpdateNotifyOuterClass() {}
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 BattlePassCurScheduleUpdateNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassCurScheduleUpdateNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool have_cur_schedule = 11;</code>
* @return The haveCurSchedule.
*/
boolean getHaveCurSchedule();
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return Whether the curSchedule field is set.
*/
boolean hasCurSchedule();
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return The curSchedule.
*/
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule getCurSchedule();
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder getCurScheduleOrBuilder();
}
/**
* <pre>
* CmdId: 2607
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassCurScheduleUpdateNotify}
*/
public static final class BattlePassCurScheduleUpdateNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassCurScheduleUpdateNotify)
BattlePassCurScheduleUpdateNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassCurScheduleUpdateNotify.newBuilder() to construct.
private BattlePassCurScheduleUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassCurScheduleUpdateNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassCurScheduleUpdateNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassCurScheduleUpdateNotify(
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 10: {
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder subBuilder = null;
if (curSchedule_ != null) {
subBuilder = curSchedule_.toBuilder();
}
curSchedule_ = input.readMessage(emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(curSchedule_);
curSchedule_ = subBuilder.buildPartial();
}
break;
}
case 88: {
haveCurSchedule_ = input.readBool();
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.BattlePassCurScheduleUpdateNotifyOuterClass.internal_static_BattlePassCurScheduleUpdateNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.internal_static_BattlePassCurScheduleUpdateNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.class, emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.Builder.class);
}
public static final int HAVE_CUR_SCHEDULE_FIELD_NUMBER = 11;
private boolean haveCurSchedule_;
/**
* <code>bool have_cur_schedule = 11;</code>
* @return The haveCurSchedule.
*/
@java.lang.Override
public boolean getHaveCurSchedule() {
return haveCurSchedule_;
}
public static final int CUR_SCHEDULE_FIELD_NUMBER = 1;
private emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule curSchedule_;
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return Whether the curSchedule field is set.
*/
@java.lang.Override
public boolean hasCurSchedule() {
return curSchedule_ != null;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return The curSchedule.
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule getCurSchedule() {
return curSchedule_ == null ? emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.getDefaultInstance() : curSchedule_;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder getCurScheduleOrBuilder() {
return getCurSchedule();
}
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 (curSchedule_ != null) {
output.writeMessage(1, getCurSchedule());
}
if (haveCurSchedule_ != false) {
output.writeBool(11, haveCurSchedule_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (curSchedule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCurSchedule());
}
if (haveCurSchedule_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, haveCurSchedule_);
}
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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify other = (emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify) obj;
if (getHaveCurSchedule()
!= other.getHaveCurSchedule()) return false;
if (hasCurSchedule() != other.hasCurSchedule()) return false;
if (hasCurSchedule()) {
if (!getCurSchedule()
.equals(other.getCurSchedule())) 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) + HAVE_CUR_SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHaveCurSchedule());
if (hasCurSchedule()) {
hash = (37 * hash) + CUR_SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getCurSchedule().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify 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;
}
/**
* <pre>
* CmdId: 2607
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassCurScheduleUpdateNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassCurScheduleUpdateNotify)
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.internal_static_BattlePassCurScheduleUpdateNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.internal_static_BattlePassCurScheduleUpdateNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.class, emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.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();
haveCurSchedule_ = false;
if (curScheduleBuilder_ == null) {
curSchedule_ = null;
} else {
curSchedule_ = null;
curScheduleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.internal_static_BattlePassCurScheduleUpdateNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify build() {
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify buildPartial() {
emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify result = new emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify(this);
result.haveCurSchedule_ = haveCurSchedule_;
if (curScheduleBuilder_ == null) {
result.curSchedule_ = curSchedule_;
} else {
result.curSchedule_ = curScheduleBuilder_.build();
}
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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify other) {
if (other == emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify.getDefaultInstance()) return this;
if (other.getHaveCurSchedule() != false) {
setHaveCurSchedule(other.getHaveCurSchedule());
}
if (other.hasCurSchedule()) {
mergeCurSchedule(other.getCurSchedule());
}
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.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean haveCurSchedule_ ;
/**
* <code>bool have_cur_schedule = 11;</code>
* @return The haveCurSchedule.
*/
@java.lang.Override
public boolean getHaveCurSchedule() {
return haveCurSchedule_;
}
/**
* <code>bool have_cur_schedule = 11;</code>
* @param value The haveCurSchedule to set.
* @return This builder for chaining.
*/
public Builder setHaveCurSchedule(boolean value) {
haveCurSchedule_ = value;
onChanged();
return this;
}
/**
* <code>bool have_cur_schedule = 11;</code>
* @return This builder for chaining.
*/
public Builder clearHaveCurSchedule() {
haveCurSchedule_ = false;
onChanged();
return this;
}
private emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule curSchedule_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder> curScheduleBuilder_;
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return Whether the curSchedule field is set.
*/
public boolean hasCurSchedule() {
return curScheduleBuilder_ != null || curSchedule_ != null;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
* @return The curSchedule.
*/
public emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule getCurSchedule() {
if (curScheduleBuilder_ == null) {
return curSchedule_ == null ? emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.getDefaultInstance() : curSchedule_;
} else {
return curScheduleBuilder_.getMessage();
}
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public Builder setCurSchedule(emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule value) {
if (curScheduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
curSchedule_ = value;
onChanged();
} else {
curScheduleBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public Builder setCurSchedule(
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder builderForValue) {
if (curScheduleBuilder_ == null) {
curSchedule_ = builderForValue.build();
onChanged();
} else {
curScheduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public Builder mergeCurSchedule(emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule value) {
if (curScheduleBuilder_ == null) {
if (curSchedule_ != null) {
curSchedule_ =
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.newBuilder(curSchedule_).mergeFrom(value).buildPartial();
} else {
curSchedule_ = value;
}
onChanged();
} else {
curScheduleBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public Builder clearCurSchedule() {
if (curScheduleBuilder_ == null) {
curSchedule_ = null;
onChanged();
} else {
curSchedule_ = null;
curScheduleBuilder_ = null;
}
return this;
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder getCurScheduleBuilder() {
onChanged();
return getCurScheduleFieldBuilder().getBuilder();
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder getCurScheduleOrBuilder() {
if (curScheduleBuilder_ != null) {
return curScheduleBuilder_.getMessageOrBuilder();
} else {
return curSchedule_ == null ?
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.getDefaultInstance() : curSchedule_;
}
}
/**
* <code>.BattlePassSchedule cur_schedule = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder>
getCurScheduleFieldBuilder() {
if (curScheduleBuilder_ == null) {
curScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule.Builder, emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassScheduleOrBuilder>(
getCurSchedule(),
getParentForChildren(),
isClean());
curSchedule_ = null;
}
return curScheduleBuilder_;
}
@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:BattlePassCurScheduleUpdateNotify)
}
// @@protoc_insertion_point(class_scope:BattlePassCurScheduleUpdateNotify)
private static final emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify();
}
public static emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassCurScheduleUpdateNotify>
PARSER = new com.google.protobuf.AbstractParser<BattlePassCurScheduleUpdateNotify>() {
@java.lang.Override
public BattlePassCurScheduleUpdateNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassCurScheduleUpdateNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassCurScheduleUpdateNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassCurScheduleUpdateNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassCurScheduleUpdateNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassCurScheduleUpdateNotify_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\'BattlePassCurScheduleUpdateNotify.prot" +
"o\032\030BattlePassSchedule.proto\"i\n!BattlePas" +
"sCurScheduleUpdateNotify\022\031\n\021have_cur_sch" +
"edule\030\013 \001(\010\022)\n\014cur_schedule\030\001 \001(\0132\023.Batt" +
"lePassScheduleB\033\n\031emu.grasscutter.net.pr" +
"otob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.getDescriptor(),
});
internal_static_BattlePassCurScheduleUpdateNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassCurScheduleUpdateNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassCurScheduleUpdateNotify_descriptor,
new java.lang.String[] { "HaveCurSchedule", "CurSchedule", });
emu.grasscutter.net.proto.BattlePassScheduleOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,677 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassCycle.proto
package emu.grasscutter.net.proto;
public final class BattlePassCycleOuterClass {
private BattlePassCycleOuterClass() {}
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 BattlePassCycleOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassCycle)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 cycle_idx = 3;</code>
* @return The cycleIdx.
*/
int getCycleIdx();
/**
* <code>uint32 end_time = 10;</code>
* @return The endTime.
*/
int getEndTime();
/**
* <code>uint32 begin_time = 13;</code>
* @return The beginTime.
*/
int getBeginTime();
}
/**
* Protobuf type {@code BattlePassCycle}
*/
public static final class BattlePassCycle extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassCycle)
BattlePassCycleOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassCycle.newBuilder() to construct.
private BattlePassCycle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassCycle() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassCycle();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassCycle(
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 24: {
cycleIdx_ = input.readUInt32();
break;
}
case 80: {
endTime_ = input.readUInt32();
break;
}
case 104: {
beginTime_ = 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.BattlePassCycleOuterClass.internal_static_BattlePassCycle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassCycleOuterClass.internal_static_BattlePassCycle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.class, emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.Builder.class);
}
public static final int CYCLE_IDX_FIELD_NUMBER = 3;
private int cycleIdx_;
/**
* <code>uint32 cycle_idx = 3;</code>
* @return The cycleIdx.
*/
@java.lang.Override
public int getCycleIdx() {
return cycleIdx_;
}
public static final int END_TIME_FIELD_NUMBER = 10;
private int endTime_;
/**
* <code>uint32 end_time = 10;</code>
* @return The endTime.
*/
@java.lang.Override
public int getEndTime() {
return endTime_;
}
public static final int BEGIN_TIME_FIELD_NUMBER = 13;
private int beginTime_;
/**
* <code>uint32 begin_time = 13;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
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 (cycleIdx_ != 0) {
output.writeUInt32(3, cycleIdx_);
}
if (endTime_ != 0) {
output.writeUInt32(10, endTime_);
}
if (beginTime_ != 0) {
output.writeUInt32(13, beginTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cycleIdx_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, cycleIdx_);
}
if (endTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, endTime_);
}
if (beginTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, beginTime_);
}
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.BattlePassCycleOuterClass.BattlePassCycle)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle other = (emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle) obj;
if (getCycleIdx()
!= other.getCycleIdx()) return false;
if (getEndTime()
!= other.getEndTime()) return false;
if (getBeginTime()
!= other.getBeginTime()) 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) + CYCLE_IDX_FIELD_NUMBER;
hash = (53 * hash) + getCycleIdx();
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime();
hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle 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.BattlePassCycleOuterClass.BattlePassCycle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle 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.BattlePassCycleOuterClass.BattlePassCycle parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle 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.BattlePassCycleOuterClass.BattlePassCycle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle 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.BattlePassCycleOuterClass.BattlePassCycle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle 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.BattlePassCycleOuterClass.BattlePassCycle 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 BattlePassCycle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassCycle)
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassCycleOuterClass.internal_static_BattlePassCycle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassCycleOuterClass.internal_static_BattlePassCycle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.class, emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.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();
cycleIdx_ = 0;
endTime_ = 0;
beginTime_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassCycleOuterClass.internal_static_BattlePassCycle_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle build() {
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle buildPartial() {
emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle result = new emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle(this);
result.cycleIdx_ = cycleIdx_;
result.endTime_ = endTime_;
result.beginTime_ = beginTime_;
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.BattlePassCycleOuterClass.BattlePassCycle) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle other) {
if (other == emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle.getDefaultInstance()) return this;
if (other.getCycleIdx() != 0) {
setCycleIdx(other.getCycleIdx());
}
if (other.getEndTime() != 0) {
setEndTime(other.getEndTime());
}
if (other.getBeginTime() != 0) {
setBeginTime(other.getBeginTime());
}
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.BattlePassCycleOuterClass.BattlePassCycle parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int cycleIdx_ ;
/**
* <code>uint32 cycle_idx = 3;</code>
* @return The cycleIdx.
*/
@java.lang.Override
public int getCycleIdx() {
return cycleIdx_;
}
/**
* <code>uint32 cycle_idx = 3;</code>
* @param value The cycleIdx to set.
* @return This builder for chaining.
*/
public Builder setCycleIdx(int value) {
cycleIdx_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cycle_idx = 3;</code>
* @return This builder for chaining.
*/
public Builder clearCycleIdx() {
cycleIdx_ = 0;
onChanged();
return this;
}
private int endTime_ ;
/**
* <code>uint32 end_time = 10;</code>
* @return The endTime.
*/
@java.lang.Override
public int getEndTime() {
return endTime_;
}
/**
* <code>uint32 end_time = 10;</code>
* @param value The endTime to set.
* @return This builder for chaining.
*/
public Builder setEndTime(int value) {
endTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 end_time = 10;</code>
* @return This builder for chaining.
*/
public Builder clearEndTime() {
endTime_ = 0;
onChanged();
return this;
}
private int beginTime_ ;
/**
* <code>uint32 begin_time = 13;</code>
* @return The beginTime.
*/
@java.lang.Override
public int getBeginTime() {
return beginTime_;
}
/**
* <code>uint32 begin_time = 13;</code>
* @param value The beginTime to set.
* @return This builder for chaining.
*/
public Builder setBeginTime(int value) {
beginTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 begin_time = 13;</code>
* @return This builder for chaining.
*/
public Builder clearBeginTime() {
beginTime_ = 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:BattlePassCycle)
}
// @@protoc_insertion_point(class_scope:BattlePassCycle)
private static final emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle();
}
public static emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassCycle>
PARSER = new com.google.protobuf.AbstractParser<BattlePassCycle>() {
@java.lang.Override
public BattlePassCycle parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassCycle(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassCycle> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassCycle> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassCycle_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassCycle_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\025BattlePassCycle.proto\"J\n\017BattlePassCyc" +
"le\022\021\n\tcycle_idx\030\003 \001(\r\022\020\n\010end_time\030\n \001(\r\022" +
"\022\n\nbegin_time\030\r \001(\rB\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_BattlePassCycle_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassCycle_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassCycle_descriptor,
new java.lang.String[] { "CycleIdx", "EndTime", "BeginTime", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,678 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassMissionDelNotify.proto
package emu.grasscutter.net.proto;
public final class BattlePassMissionDelNotifyOuterClass {
private BattlePassMissionDelNotifyOuterClass() {}
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 BattlePassMissionDelNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassMissionDelNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return A list containing the delMissionIdList.
*/
java.util.List<java.lang.Integer> getDelMissionIdListList();
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return The count of delMissionIdList.
*/
int getDelMissionIdListCount();
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param index The index of the element to return.
* @return The delMissionIdList at the given index.
*/
int getDelMissionIdList(int index);
}
/**
* <pre>
* CmdId: 2625
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassMissionDelNotify}
*/
public static final class BattlePassMissionDelNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassMissionDelNotify)
BattlePassMissionDelNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassMissionDelNotify.newBuilder() to construct.
private BattlePassMissionDelNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassMissionDelNotify() {
delMissionIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassMissionDelNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassMissionDelNotify(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 80: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
delMissionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
delMissionIdList_.addInt(input.readUInt32());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
delMissionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
delMissionIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
delMissionIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.internal_static_BattlePassMissionDelNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.internal_static_BattlePassMissionDelNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.class, emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.Builder.class);
}
public static final int DEL_MISSION_ID_LIST_FIELD_NUMBER = 10;
private com.google.protobuf.Internal.IntList delMissionIdList_;
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return A list containing the delMissionIdList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getDelMissionIdListList() {
return delMissionIdList_;
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return The count of delMissionIdList.
*/
public int getDelMissionIdListCount() {
return delMissionIdList_.size();
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param index The index of the element to return.
* @return The delMissionIdList at the given index.
*/
public int getDelMissionIdList(int index) {
return delMissionIdList_.getInt(index);
}
private int delMissionIdListMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getDelMissionIdListList().size() > 0) {
output.writeUInt32NoTag(82);
output.writeUInt32NoTag(delMissionIdListMemoizedSerializedSize);
}
for (int i = 0; i < delMissionIdList_.size(); i++) {
output.writeUInt32NoTag(delMissionIdList_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < delMissionIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(delMissionIdList_.getInt(i));
}
size += dataSize;
if (!getDelMissionIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
delMissionIdListMemoizedSerializedSize = dataSize;
}
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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify other = (emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify) obj;
if (!getDelMissionIdListList()
.equals(other.getDelMissionIdListList())) 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();
if (getDelMissionIdListCount() > 0) {
hash = (37 * hash) + DEL_MISSION_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getDelMissionIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify 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;
}
/**
* <pre>
* CmdId: 2625
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassMissionDelNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassMissionDelNotify)
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.internal_static_BattlePassMissionDelNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.internal_static_BattlePassMissionDelNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.class, emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.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();
delMissionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.internal_static_BattlePassMissionDelNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify build() {
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify buildPartial() {
emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify result = new emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
delMissionIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.delMissionIdList_ = delMissionIdList_;
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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify other) {
if (other == emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify.getDefaultInstance()) return this;
if (!other.delMissionIdList_.isEmpty()) {
if (delMissionIdList_.isEmpty()) {
delMissionIdList_ = other.delMissionIdList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDelMissionIdListIsMutable();
delMissionIdList_.addAll(other.delMissionIdList_);
}
onChanged();
}
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.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList delMissionIdList_ = emptyIntList();
private void ensureDelMissionIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
delMissionIdList_ = mutableCopy(delMissionIdList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return A list containing the delMissionIdList.
*/
public java.util.List<java.lang.Integer>
getDelMissionIdListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(delMissionIdList_) : delMissionIdList_;
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return The count of delMissionIdList.
*/
public int getDelMissionIdListCount() {
return delMissionIdList_.size();
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param index The index of the element to return.
* @return The delMissionIdList at the given index.
*/
public int getDelMissionIdList(int index) {
return delMissionIdList_.getInt(index);
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param index The index to set the value at.
* @param value The delMissionIdList to set.
* @return This builder for chaining.
*/
public Builder setDelMissionIdList(
int index, int value) {
ensureDelMissionIdListIsMutable();
delMissionIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param value The delMissionIdList to add.
* @return This builder for chaining.
*/
public Builder addDelMissionIdList(int value) {
ensureDelMissionIdListIsMutable();
delMissionIdList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @param values The delMissionIdList to add.
* @return This builder for chaining.
*/
public Builder addAllDelMissionIdList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureDelMissionIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delMissionIdList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 del_mission_id_list = 10;</code>
* @return This builder for chaining.
*/
public Builder clearDelMissionIdList() {
delMissionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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:BattlePassMissionDelNotify)
}
// @@protoc_insertion_point(class_scope:BattlePassMissionDelNotify)
private static final emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify();
}
public static emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassMissionDelNotify>
PARSER = new com.google.protobuf.AbstractParser<BattlePassMissionDelNotify>() {
@java.lang.Override
public BattlePassMissionDelNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassMissionDelNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassMissionDelNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassMissionDelNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionDelNotifyOuterClass.BattlePassMissionDelNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassMissionDelNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassMissionDelNotify_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 BattlePassMissionDelNotify.proto\"9\n\032Ba" +
"ttlePassMissionDelNotify\022\033\n\023del_mission_" +
"id_list\030\n \003(\rB\033\n\031emu.grasscutter.net.pro" +
"tob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_BattlePassMissionDelNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassMissionDelNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassMissionDelNotify_descriptor,
new java.lang.String[] { "DelMissionIdList", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,859 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassMissionUpdateNotify.proto
package emu.grasscutter.net.proto;
public final class BattlePassMissionUpdateNotifyOuterClass {
private BattlePassMissionUpdateNotifyOuterClass() {}
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 BattlePassMissionUpdateNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassMissionUpdateNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission>
getMissionListList();
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission getMissionList(int index);
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
int getMissionListCount();
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder>
getMissionListOrBuilderList();
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder getMissionListOrBuilder(
int index);
}
/**
* <pre>
* CmdId: 2618
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassMissionUpdateNotify}
*/
public static final class BattlePassMissionUpdateNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassMissionUpdateNotify)
BattlePassMissionUpdateNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassMissionUpdateNotify.newBuilder() to construct.
private BattlePassMissionUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassMissionUpdateNotify() {
missionList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassMissionUpdateNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassMissionUpdateNotify(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
missionList_ = new java.util.ArrayList<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission>();
mutable_bitField0_ |= 0x00000001;
}
missionList_.add(
input.readMessage(emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
missionList_ = java.util.Collections.unmodifiableList(missionList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.internal_static_BattlePassMissionUpdateNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.internal_static_BattlePassMissionUpdateNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.class, emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.Builder.class);
}
public static final int MISSION_LIST_FIELD_NUMBER = 1;
private java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission> missionList_;
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission> getMissionListList() {
return missionList_;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder>
getMissionListOrBuilderList() {
return missionList_;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
@java.lang.Override
public int getMissionListCount() {
return missionList_.size();
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission getMissionList(int index) {
return missionList_.get(index);
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder getMissionListOrBuilder(
int index) {
return missionList_.get(index);
}
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 {
for (int i = 0; i < missionList_.size(); i++) {
output.writeMessage(1, missionList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < missionList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, missionList_.get(i));
}
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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify other = (emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify) obj;
if (!getMissionListList()
.equals(other.getMissionListList())) 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();
if (getMissionListCount() > 0) {
hash = (37 * hash) + MISSION_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMissionListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify 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;
}
/**
* <pre>
* CmdId: 2618
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code BattlePassMissionUpdateNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassMissionUpdateNotify)
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.internal_static_BattlePassMissionUpdateNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.internal_static_BattlePassMissionUpdateNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.class, emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMissionListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (missionListBuilder_ == null) {
missionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
missionListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.internal_static_BattlePassMissionUpdateNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify build() {
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify buildPartial() {
emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify result = new emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify(this);
int from_bitField0_ = bitField0_;
if (missionListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
missionList_ = java.util.Collections.unmodifiableList(missionList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.missionList_ = missionList_;
} else {
result.missionList_ = missionListBuilder_.build();
}
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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify other) {
if (other == emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify.getDefaultInstance()) return this;
if (missionListBuilder_ == null) {
if (!other.missionList_.isEmpty()) {
if (missionList_.isEmpty()) {
missionList_ = other.missionList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMissionListIsMutable();
missionList_.addAll(other.missionList_);
}
onChanged();
}
} else {
if (!other.missionList_.isEmpty()) {
if (missionListBuilder_.isEmpty()) {
missionListBuilder_.dispose();
missionListBuilder_ = null;
missionList_ = other.missionList_;
bitField0_ = (bitField0_ & ~0x00000001);
missionListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMissionListFieldBuilder() : null;
} else {
missionListBuilder_.addAllMessages(other.missionList_);
}
}
}
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.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission> missionList_ =
java.util.Collections.emptyList();
private void ensureMissionListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
missionList_ = new java.util.ArrayList<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission>(missionList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder> missionListBuilder_;
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission> getMissionListList() {
if (missionListBuilder_ == null) {
return java.util.Collections.unmodifiableList(missionList_);
} else {
return missionListBuilder_.getMessageList();
}
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public int getMissionListCount() {
if (missionListBuilder_ == null) {
return missionList_.size();
} else {
return missionListBuilder_.getCount();
}
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission getMissionList(int index) {
if (missionListBuilder_ == null) {
return missionList_.get(index);
} else {
return missionListBuilder_.getMessage(index);
}
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder setMissionList(
int index, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission value) {
if (missionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMissionListIsMutable();
missionList_.set(index, value);
onChanged();
} else {
missionListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder setMissionList(
int index, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder builderForValue) {
if (missionListBuilder_ == null) {
ensureMissionListIsMutable();
missionList_.set(index, builderForValue.build());
onChanged();
} else {
missionListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder addMissionList(emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission value) {
if (missionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMissionListIsMutable();
missionList_.add(value);
onChanged();
} else {
missionListBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder addMissionList(
int index, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission value) {
if (missionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMissionListIsMutable();
missionList_.add(index, value);
onChanged();
} else {
missionListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder addMissionList(
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder builderForValue) {
if (missionListBuilder_ == null) {
ensureMissionListIsMutable();
missionList_.add(builderForValue.build());
onChanged();
} else {
missionListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder addMissionList(
int index, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder builderForValue) {
if (missionListBuilder_ == null) {
ensureMissionListIsMutable();
missionList_.add(index, builderForValue.build());
onChanged();
} else {
missionListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder addAllMissionList(
java.lang.Iterable<? extends emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission> values) {
if (missionListBuilder_ == null) {
ensureMissionListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, missionList_);
onChanged();
} else {
missionListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder clearMissionList() {
if (missionListBuilder_ == null) {
missionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
missionListBuilder_.clear();
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public Builder removeMissionList(int index) {
if (missionListBuilder_ == null) {
ensureMissionListIsMutable();
missionList_.remove(index);
onChanged();
} else {
missionListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder getMissionListBuilder(
int index) {
return getMissionListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder getMissionListOrBuilder(
int index) {
if (missionListBuilder_ == null) {
return missionList_.get(index); } else {
return missionListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder>
getMissionListOrBuilderList() {
if (missionListBuilder_ != null) {
return missionListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(missionList_);
}
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder addMissionListBuilder() {
return getMissionListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.getDefaultInstance());
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder addMissionListBuilder(
int index) {
return getMissionListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.getDefaultInstance());
}
/**
* <code>repeated .BattlePassMission mission_list = 1;</code>
*/
public java.util.List<emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder>
getMissionListBuilderList() {
return getMissionListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder>
getMissionListFieldBuilder() {
if (missionListBuilder_ == null) {
missionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.Builder, emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMissionOrBuilder>(
missionList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
missionList_ = null;
}
return missionListBuilder_;
}
@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:BattlePassMissionUpdateNotify)
}
// @@protoc_insertion_point(class_scope:BattlePassMissionUpdateNotify)
private static final emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify();
}
public static emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassMissionUpdateNotify>
PARSER = new com.google.protobuf.AbstractParser<BattlePassMissionUpdateNotify>() {
@java.lang.Override
public BattlePassMissionUpdateNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassMissionUpdateNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassMissionUpdateNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassMissionUpdateNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassMissionUpdateNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassMissionUpdateNotify_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#BattlePassMissionUpdateNotify.proto\032\027B" +
"attlePassMission.proto\"I\n\035BattlePassMiss" +
"ionUpdateNotify\022(\n\014mission_list\030\001 \003(\0132\022." +
"BattlePassMissionB\033\n\031emu.grasscutter.net" +
".protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.BattlePassMissionOuterClass.getDescriptor(),
});
internal_static_BattlePassMissionUpdateNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassMissionUpdateNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassMissionUpdateNotify_descriptor,
new java.lang.String[] { "MissionList", });
emu.grasscutter.net.proto.BattlePassMissionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,918 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassProduct.proto
package emu.grasscutter.net.proto;
public final class BattlePassProductOuterClass {
private BattlePassProductOuterClass() {}
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 BattlePassProductOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassProduct)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string normal_product_id = 13;</code>
* @return The normalProductId.
*/
java.lang.String getNormalProductId();
/**
* <code>string normal_product_id = 13;</code>
* @return The bytes for normalProductId.
*/
com.google.protobuf.ByteString
getNormalProductIdBytes();
/**
* <code>string extra_product_id = 10;</code>
* @return The extraProductId.
*/
java.lang.String getExtraProductId();
/**
* <code>string extra_product_id = 10;</code>
* @return The bytes for extraProductId.
*/
com.google.protobuf.ByteString
getExtraProductIdBytes();
/**
* <code>string upgrade_product_id = 6;</code>
* @return The upgradeProductId.
*/
java.lang.String getUpgradeProductId();
/**
* <code>string upgrade_product_id = 6;</code>
* @return The bytes for upgradeProductId.
*/
com.google.protobuf.ByteString
getUpgradeProductIdBytes();
}
/**
* Protobuf type {@code BattlePassProduct}
*/
public static final class BattlePassProduct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassProduct)
BattlePassProductOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassProduct.newBuilder() to construct.
private BattlePassProduct(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassProduct() {
normalProductId_ = "";
extraProductId_ = "";
upgradeProductId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassProduct();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassProduct(
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 50: {
java.lang.String s = input.readStringRequireUtf8();
upgradeProductId_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
extraProductId_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
normalProductId_ = s;
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.BattlePassProductOuterClass.internal_static_BattlePassProduct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassProductOuterClass.internal_static_BattlePassProduct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.class, emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.Builder.class);
}
public static final int NORMAL_PRODUCT_ID_FIELD_NUMBER = 13;
private volatile java.lang.Object normalProductId_;
/**
* <code>string normal_product_id = 13;</code>
* @return The normalProductId.
*/
@java.lang.Override
public java.lang.String getNormalProductId() {
java.lang.Object ref = normalProductId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
normalProductId_ = s;
return s;
}
}
/**
* <code>string normal_product_id = 13;</code>
* @return The bytes for normalProductId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNormalProductIdBytes() {
java.lang.Object ref = normalProductId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTRA_PRODUCT_ID_FIELD_NUMBER = 10;
private volatile java.lang.Object extraProductId_;
/**
* <code>string extra_product_id = 10;</code>
* @return The extraProductId.
*/
@java.lang.Override
public java.lang.String getExtraProductId() {
java.lang.Object ref = extraProductId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extraProductId_ = s;
return s;
}
}
/**
* <code>string extra_product_id = 10;</code>
* @return The bytes for extraProductId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExtraProductIdBytes() {
java.lang.Object ref = extraProductId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extraProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPGRADE_PRODUCT_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object upgradeProductId_;
/**
* <code>string upgrade_product_id = 6;</code>
* @return The upgradeProductId.
*/
@java.lang.Override
public java.lang.String getUpgradeProductId() {
java.lang.Object ref = upgradeProductId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
upgradeProductId_ = s;
return s;
}
}
/**
* <code>string upgrade_product_id = 6;</code>
* @return The bytes for upgradeProductId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpgradeProductIdBytes() {
java.lang.Object ref = upgradeProductId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
upgradeProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeProductId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, upgradeProductId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extraProductId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, extraProductId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalProductId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, normalProductId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeProductId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, upgradeProductId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extraProductId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, extraProductId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normalProductId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, normalProductId_);
}
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.BattlePassProductOuterClass.BattlePassProduct)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct other = (emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct) obj;
if (!getNormalProductId()
.equals(other.getNormalProductId())) return false;
if (!getExtraProductId()
.equals(other.getExtraProductId())) return false;
if (!getUpgradeProductId()
.equals(other.getUpgradeProductId())) 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) + NORMAL_PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getNormalProductId().hashCode();
hash = (37 * hash) + EXTRA_PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getExtraProductId().hashCode();
hash = (37 * hash) + UPGRADE_PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getUpgradeProductId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct 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.BattlePassProductOuterClass.BattlePassProduct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct 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.BattlePassProductOuterClass.BattlePassProduct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct 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.BattlePassProductOuterClass.BattlePassProduct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct 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.BattlePassProductOuterClass.BattlePassProduct parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct 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.BattlePassProductOuterClass.BattlePassProduct 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 BattlePassProduct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassProduct)
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProductOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassProductOuterClass.internal_static_BattlePassProduct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassProductOuterClass.internal_static_BattlePassProduct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.class, emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.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();
normalProductId_ = "";
extraProductId_ = "";
upgradeProductId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassProductOuterClass.internal_static_BattlePassProduct_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct build() {
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct buildPartial() {
emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct result = new emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct(this);
result.normalProductId_ = normalProductId_;
result.extraProductId_ = extraProductId_;
result.upgradeProductId_ = upgradeProductId_;
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.BattlePassProductOuterClass.BattlePassProduct) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct other) {
if (other == emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct.getDefaultInstance()) return this;
if (!other.getNormalProductId().isEmpty()) {
normalProductId_ = other.normalProductId_;
onChanged();
}
if (!other.getExtraProductId().isEmpty()) {
extraProductId_ = other.extraProductId_;
onChanged();
}
if (!other.getUpgradeProductId().isEmpty()) {
upgradeProductId_ = other.upgradeProductId_;
onChanged();
}
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.BattlePassProductOuterClass.BattlePassProduct parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object normalProductId_ = "";
/**
* <code>string normal_product_id = 13;</code>
* @return The normalProductId.
*/
public java.lang.String getNormalProductId() {
java.lang.Object ref = normalProductId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
normalProductId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string normal_product_id = 13;</code>
* @return The bytes for normalProductId.
*/
public com.google.protobuf.ByteString
getNormalProductIdBytes() {
java.lang.Object ref = normalProductId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string normal_product_id = 13;</code>
* @param value The normalProductId to set.
* @return This builder for chaining.
*/
public Builder setNormalProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
normalProductId_ = value;
onChanged();
return this;
}
/**
* <code>string normal_product_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearNormalProductId() {
normalProductId_ = getDefaultInstance().getNormalProductId();
onChanged();
return this;
}
/**
* <code>string normal_product_id = 13;</code>
* @param value The bytes for normalProductId to set.
* @return This builder for chaining.
*/
public Builder setNormalProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
normalProductId_ = value;
onChanged();
return this;
}
private java.lang.Object extraProductId_ = "";
/**
* <code>string extra_product_id = 10;</code>
* @return The extraProductId.
*/
public java.lang.String getExtraProductId() {
java.lang.Object ref = extraProductId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extraProductId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string extra_product_id = 10;</code>
* @return The bytes for extraProductId.
*/
public com.google.protobuf.ByteString
getExtraProductIdBytes() {
java.lang.Object ref = extraProductId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extraProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string extra_product_id = 10;</code>
* @param value The extraProductId to set.
* @return This builder for chaining.
*/
public Builder setExtraProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
extraProductId_ = value;
onChanged();
return this;
}
/**
* <code>string extra_product_id = 10;</code>
* @return This builder for chaining.
*/
public Builder clearExtraProductId() {
extraProductId_ = getDefaultInstance().getExtraProductId();
onChanged();
return this;
}
/**
* <code>string extra_product_id = 10;</code>
* @param value The bytes for extraProductId to set.
* @return This builder for chaining.
*/
public Builder setExtraProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
extraProductId_ = value;
onChanged();
return this;
}
private java.lang.Object upgradeProductId_ = "";
/**
* <code>string upgrade_product_id = 6;</code>
* @return The upgradeProductId.
*/
public java.lang.String getUpgradeProductId() {
java.lang.Object ref = upgradeProductId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
upgradeProductId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string upgrade_product_id = 6;</code>
* @return The bytes for upgradeProductId.
*/
public com.google.protobuf.ByteString
getUpgradeProductIdBytes() {
java.lang.Object ref = upgradeProductId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
upgradeProductId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string upgrade_product_id = 6;</code>
* @param value The upgradeProductId to set.
* @return This builder for chaining.
*/
public Builder setUpgradeProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
upgradeProductId_ = value;
onChanged();
return this;
}
/**
* <code>string upgrade_product_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearUpgradeProductId() {
upgradeProductId_ = getDefaultInstance().getUpgradeProductId();
onChanged();
return this;
}
/**
* <code>string upgrade_product_id = 6;</code>
* @param value The bytes for upgradeProductId to set.
* @return This builder for chaining.
*/
public Builder setUpgradeProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
upgradeProductId_ = value;
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:BattlePassProduct)
}
// @@protoc_insertion_point(class_scope:BattlePassProduct)
private static final emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct();
}
public static emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassProduct>
PARSER = new com.google.protobuf.AbstractParser<BattlePassProduct>() {
@java.lang.Override
public BattlePassProduct parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassProduct(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassProduct> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassProduct> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassProductOuterClass.BattlePassProduct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassProduct_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassProduct_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\027BattlePassProduct.proto\"d\n\021BattlePassP" +
"roduct\022\031\n\021normal_product_id\030\r \001(\t\022\030\n\020ext" +
"ra_product_id\030\n \001(\t\022\032\n\022upgrade_product_i" +
"d\030\006 \001(\tB\033\n\031emu.grasscutter.net.protob\006pr" +
"oto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_BattlePassProduct_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassProduct_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassProduct_descriptor,
new java.lang.String[] { "NormalProductId", "ExtraProductId", "UpgradeProductId", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,717 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassRewardTag.proto
package emu.grasscutter.net.proto;
public final class BattlePassRewardTagOuterClass {
private BattlePassRewardTagOuterClass() {}
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 BattlePassRewardTagOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassRewardTag)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 level = 4;</code>
* @return The level.
*/
int getLevel();
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The enum numeric value on the wire for unlockStatus.
*/
int getUnlockStatusValue();
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The unlockStatus.
*/
emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus getUnlockStatus();
/**
* <code>uint32 reward_id = 7;</code>
* @return The rewardId.
*/
int getRewardId();
}
/**
* Protobuf type {@code BattlePassRewardTag}
*/
public static final class BattlePassRewardTag extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassRewardTag)
BattlePassRewardTagOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassRewardTag.newBuilder() to construct.
private BattlePassRewardTag(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassRewardTag() {
unlockStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassRewardTag();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassRewardTag(
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: {
int rawValue = input.readEnum();
unlockStatus_ = rawValue;
break;
}
case 32: {
level_ = input.readUInt32();
break;
}
case 56: {
rewardId_ = 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.BattlePassRewardTagOuterClass.internal_static_BattlePassRewardTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.internal_static_BattlePassRewardTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.class, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder.class);
}
public static final int LEVEL_FIELD_NUMBER = 4;
private int level_;
/**
* <code>uint32 level = 4;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
public static final int UNLOCK_STATUS_FIELD_NUMBER = 2;
private int unlockStatus_;
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The enum numeric value on the wire for unlockStatus.
*/
@java.lang.Override public int getUnlockStatusValue() {
return unlockStatus_;
}
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The unlockStatus.
*/
@java.lang.Override public emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus getUnlockStatus() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus result = emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.valueOf(unlockStatus_);
return result == null ? emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.UNRECOGNIZED : result;
}
public static final int REWARD_ID_FIELD_NUMBER = 7;
private int rewardId_;
/**
* <code>uint32 reward_id = 7;</code>
* @return The rewardId.
*/
@java.lang.Override
public int getRewardId() {
return rewardId_;
}
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 (unlockStatus_ != emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_INVALID.getNumber()) {
output.writeEnum(2, unlockStatus_);
}
if (level_ != 0) {
output.writeUInt32(4, level_);
}
if (rewardId_ != 0) {
output.writeUInt32(7, rewardId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (unlockStatus_ != emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_INVALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, unlockStatus_);
}
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, level_);
}
if (rewardId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, rewardId_);
}
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.BattlePassRewardTagOuterClass.BattlePassRewardTag)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag other = (emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag) obj;
if (getLevel()
!= other.getLevel()) return false;
if (unlockStatus_ != other.unlockStatus_) return false;
if (getRewardId()
!= other.getRewardId()) 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) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLevel();
hash = (37 * hash) + UNLOCK_STATUS_FIELD_NUMBER;
hash = (53 * hash) + unlockStatus_;
hash = (37 * hash) + REWARD_ID_FIELD_NUMBER;
hash = (53 * hash) + getRewardId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag 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.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag 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.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag 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.BattlePassRewardTagOuterClass.BattlePassRewardTag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag 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.BattlePassRewardTagOuterClass.BattlePassRewardTag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag 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.BattlePassRewardTagOuterClass.BattlePassRewardTag 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 BattlePassRewardTag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassRewardTag)
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.internal_static_BattlePassRewardTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.internal_static_BattlePassRewardTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.class, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.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();
level_ = 0;
unlockStatus_ = 0;
rewardId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.internal_static_BattlePassRewardTag_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag build() {
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag buildPartial() {
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag result = new emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag(this);
result.level_ = level_;
result.unlockStatus_ = unlockStatus_;
result.rewardId_ = rewardId_;
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.BattlePassRewardTagOuterClass.BattlePassRewardTag) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag other) {
if (other == emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.getDefaultInstance()) return this;
if (other.getLevel() != 0) {
setLevel(other.getLevel());
}
if (other.unlockStatus_ != 0) {
setUnlockStatusValue(other.getUnlockStatusValue());
}
if (other.getRewardId() != 0) {
setRewardId(other.getRewardId());
}
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.BattlePassRewardTagOuterClass.BattlePassRewardTag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int level_ ;
/**
* <code>uint32 level = 4;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
/**
* <code>uint32 level = 4;</code>
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(int value) {
level_ = value;
onChanged();
return this;
}
/**
* <code>uint32 level = 4;</code>
* @return This builder for chaining.
*/
public Builder clearLevel() {
level_ = 0;
onChanged();
return this;
}
private int unlockStatus_ = 0;
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The enum numeric value on the wire for unlockStatus.
*/
@java.lang.Override public int getUnlockStatusValue() {
return unlockStatus_;
}
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @param value The enum numeric value on the wire for unlockStatus to set.
* @return This builder for chaining.
*/
public Builder setUnlockStatusValue(int value) {
unlockStatus_ = value;
onChanged();
return this;
}
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return The unlockStatus.
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus getUnlockStatus() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus result = emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.valueOf(unlockStatus_);
return result == null ? emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus.UNRECOGNIZED : result;
}
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @param value The unlockStatus to set.
* @return This builder for chaining.
*/
public Builder setUnlockStatus(emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus value) {
if (value == null) {
throw new NullPointerException();
}
unlockStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.BattlePassUnlockStatus unlock_status = 2;</code>
* @return This builder for chaining.
*/
public Builder clearUnlockStatus() {
unlockStatus_ = 0;
onChanged();
return this;
}
private int rewardId_ ;
/**
* <code>uint32 reward_id = 7;</code>
* @return The rewardId.
*/
@java.lang.Override
public int getRewardId() {
return rewardId_;
}
/**
* <code>uint32 reward_id = 7;</code>
* @param value The rewardId to set.
* @return This builder for chaining.
*/
public Builder setRewardId(int value) {
rewardId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 reward_id = 7;</code>
* @return This builder for chaining.
*/
public Builder clearRewardId() {
rewardId_ = 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:BattlePassRewardTag)
}
// @@protoc_insertion_point(class_scope:BattlePassRewardTag)
private static final emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag();
}
public static emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassRewardTag>
PARSER = new com.google.protobuf.AbstractParser<BattlePassRewardTag>() {
@java.lang.Override
public BattlePassRewardTag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassRewardTag(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassRewardTag> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassRewardTag> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassRewardTag_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassRewardTag_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\031BattlePassRewardTag.proto\032\034BattlePassU" +
"nlockStatus.proto\"g\n\023BattlePassRewardTag" +
"\022\r\n\005level\030\004 \001(\r\022.\n\runlock_status\030\002 \001(\0162\027" +
".BattlePassUnlockStatus\022\021\n\treward_id\030\007 \001" +
"(\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.getDescriptor(),
});
internal_static_BattlePassRewardTag_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassRewardTag_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassRewardTag_descriptor,
new java.lang.String[] { "Level", "UnlockStatus", "RewardId", });
emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,743 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassRewardTakeOption.proto
package emu.grasscutter.net.proto;
public final class BattlePassRewardTakeOptionOuterClass {
private BattlePassRewardTakeOptionOuterClass() {}
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 BattlePassRewardTakeOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:BattlePassRewardTakeOption)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return Whether the tag field is set.
*/
boolean hasTag();
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return The tag.
*/
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getTag();
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder getTagOrBuilder();
/**
* <code>uint32 option_idx = 14;</code>
* @return The optionIdx.
*/
int getOptionIdx();
}
/**
* Protobuf type {@code BattlePassRewardTakeOption}
*/
public static final class BattlePassRewardTakeOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BattlePassRewardTakeOption)
BattlePassRewardTakeOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use BattlePassRewardTakeOption.newBuilder() to construct.
private BattlePassRewardTakeOption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BattlePassRewardTakeOption() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BattlePassRewardTakeOption();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BattlePassRewardTakeOption(
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 82: {
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder subBuilder = null;
if (tag_ != null) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
break;
}
case 112: {
optionIdx_ = 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.BattlePassRewardTakeOptionOuterClass.internal_static_BattlePassRewardTakeOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.internal_static_BattlePassRewardTakeOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.class, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder.class);
}
public static final int TAG_FIELD_NUMBER = 10;
private emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag tag_;
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return Whether the tag field is set.
*/
@java.lang.Override
public boolean hasTag() {
return tag_ != null;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return The tag.
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getTag() {
return tag_ == null ? emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.getDefaultInstance() : tag_;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder getTagOrBuilder() {
return getTag();
}
public static final int OPTION_IDX_FIELD_NUMBER = 14;
private int optionIdx_;
/**
* <code>uint32 option_idx = 14;</code>
* @return The optionIdx.
*/
@java.lang.Override
public int getOptionIdx() {
return optionIdx_;
}
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 (tag_ != null) {
output.writeMessage(10, getTag());
}
if (optionIdx_ != 0) {
output.writeUInt32(14, optionIdx_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tag_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTag());
}
if (optionIdx_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, optionIdx_);
}
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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption other = (emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption) obj;
if (hasTag() != other.hasTag()) return false;
if (hasTag()) {
if (!getTag()
.equals(other.getTag())) return false;
}
if (getOptionIdx()
!= other.getOptionIdx()) 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();
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
hash = (37 * hash) + OPTION_IDX_FIELD_NUMBER;
hash = (53 * hash) + getOptionIdx();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption 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 BattlePassRewardTakeOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:BattlePassRewardTakeOption)
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.internal_static_BattlePassRewardTakeOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.internal_static_BattlePassRewardTakeOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.class, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder.class);
}
// Construct using emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.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();
if (tagBuilder_ == null) {
tag_ = null;
} else {
tag_ = null;
tagBuilder_ = null;
}
optionIdx_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.internal_static_BattlePassRewardTakeOption_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getDefaultInstanceForType() {
return emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption build() {
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption buildPartial() {
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption result = new emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption(this);
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
result.optionIdx_ = optionIdx_;
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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption) {
return mergeFrom((emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption other) {
if (other == emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.getDefaultInstance()) return this;
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (other.getOptionIdx() != 0) {
setOptionIdx(other.getOptionIdx());
}
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.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag tag_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder> tagBuilder_;
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return Whether the tag field is set.
*/
public boolean hasTag() {
return tagBuilder_ != null || tag_ != null;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
* @return The tag.
*/
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag getTag() {
if (tagBuilder_ == null) {
return tag_ == null ? emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.getDefaultInstance() : tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public Builder setTag(emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public Builder setTag(
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public Builder mergeTag(emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag value) {
if (tagBuilder_ == null) {
if (tag_ != null) {
tag_ =
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = null;
onChanged();
} else {
tag_ = null;
tagBuilder_ = null;
}
return this;
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder getTagBuilder() {
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_ == null ?
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.getDefaultInstance() : tag_;
}
}
/**
* <code>.BattlePassRewardTag tag = 10;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag.Builder, emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private int optionIdx_ ;
/**
* <code>uint32 option_idx = 14;</code>
* @return The optionIdx.
*/
@java.lang.Override
public int getOptionIdx() {
return optionIdx_;
}
/**
* <code>uint32 option_idx = 14;</code>
* @param value The optionIdx to set.
* @return This builder for chaining.
*/
public Builder setOptionIdx(int value) {
optionIdx_ = value;
onChanged();
return this;
}
/**
* <code>uint32 option_idx = 14;</code>
* @return This builder for chaining.
*/
public Builder clearOptionIdx() {
optionIdx_ = 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:BattlePassRewardTakeOption)
}
// @@protoc_insertion_point(class_scope:BattlePassRewardTakeOption)
private static final emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption();
}
public static emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BattlePassRewardTakeOption>
PARSER = new com.google.protobuf.AbstractParser<BattlePassRewardTakeOption>() {
@java.lang.Override
public BattlePassRewardTakeOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BattlePassRewardTakeOption(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BattlePassRewardTakeOption> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BattlePassRewardTakeOption> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BattlePassRewardTakeOption_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BattlePassRewardTakeOption_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 BattlePassRewardTakeOption.proto\032\031Batt" +
"lePassRewardTag.proto\"S\n\032BattlePassRewar" +
"dTakeOption\022!\n\003tag\030\n \001(\0132\024.BattlePassRew" +
"ardTag\022\022\n\noption_idx\030\016 \001(\rB\033\n\031emu.grassc" +
"utter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.getDescriptor(),
});
internal_static_BattlePassRewardTakeOption_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_BattlePassRewardTakeOption_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BattlePassRewardTakeOption_descriptor,
new java.lang.String[] { "Tag", "OptionIdx", });
emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,157 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePassUnlockStatus.proto
package emu.grasscutter.net.proto;
public final class BattlePassUnlockStatusOuterClass {
private BattlePassUnlockStatusOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code BattlePassUnlockStatus}
*/
public enum BattlePassUnlockStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_INVALID = 0;</code>
*/
BATTLE_PASS_UNLOCK_STATUS_INVALID(0),
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_FREE = 1;</code>
*/
BATTLE_PASS_UNLOCK_STATUS_FREE(1),
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_PAID = 2;</code>
*/
BATTLE_PASS_UNLOCK_STATUS_PAID(2),
UNRECOGNIZED(-1),
;
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_INVALID = 0;</code>
*/
public static final int BATTLE_PASS_UNLOCK_STATUS_INVALID_VALUE = 0;
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_FREE = 1;</code>
*/
public static final int BATTLE_PASS_UNLOCK_STATUS_FREE_VALUE = 1;
/**
* <code>BATTLE_PASS_UNLOCK_STATUS_PAID = 2;</code>
*/
public static final int BATTLE_PASS_UNLOCK_STATUS_PAID_VALUE = 2;
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 BattlePassUnlockStatus 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 BattlePassUnlockStatus forNumber(int value) {
switch (value) {
case 0: return BATTLE_PASS_UNLOCK_STATUS_INVALID;
case 1: return BATTLE_PASS_UNLOCK_STATUS_FREE;
case 2: return BATTLE_PASS_UNLOCK_STATUS_PAID;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<BattlePassUnlockStatus>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BattlePassUnlockStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<BattlePassUnlockStatus>() {
public BattlePassUnlockStatus findValueByNumber(int number) {
return BattlePassUnlockStatus.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.BattlePassUnlockStatusOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final BattlePassUnlockStatus[] VALUES = values();
public static BattlePassUnlockStatus 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 BattlePassUnlockStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:BattlePassUnlockStatus)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034BattlePassUnlockStatus.proto*\207\001\n\026Battl" +
"ePassUnlockStatus\022%\n!BATTLE_PASS_UNLOCK_" +
"STATUS_INVALID\020\000\022\"\n\036BATTLE_PASS_UNLOCK_S" +
"TATUS_FREE\020\001\022\"\n\036BATTLE_PASS_UNLOCK_STATU" +
"S_PAID\020\002B\033\n\031emu.grasscutter.net.protob\006p" +
"roto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,678 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TakeBattlePassMissionPointReq.proto
package emu.grasscutter.net.proto;
public final class TakeBattlePassMissionPointReqOuterClass {
private TakeBattlePassMissionPointReqOuterClass() {}
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 TakeBattlePassMissionPointReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:TakeBattlePassMissionPointReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return A list containing the missionIdList.
*/
java.util.List<java.lang.Integer> getMissionIdListList();
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return The count of missionIdList.
*/
int getMissionIdListCount();
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
int getMissionIdList(int index);
}
/**
* <pre>
* CmdId: 2629
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassMissionPointReq}
*/
public static final class TakeBattlePassMissionPointReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TakeBattlePassMissionPointReq)
TakeBattlePassMissionPointReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use TakeBattlePassMissionPointReq.newBuilder() to construct.
private TakeBattlePassMissionPointReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TakeBattlePassMissionPointReq() {
missionIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TakeBattlePassMissionPointReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TakeBattlePassMissionPointReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 40: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
missionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
missionIdList_.addInt(input.readUInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
missionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
missionIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
missionIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.internal_static_TakeBattlePassMissionPointReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.internal_static_TakeBattlePassMissionPointReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.class, emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.Builder.class);
}
public static final int MISSION_ID_LIST_FIELD_NUMBER = 5;
private com.google.protobuf.Internal.IntList missionIdList_;
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return A list containing the missionIdList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getMissionIdListList() {
return missionIdList_;
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return The count of missionIdList.
*/
public int getMissionIdListCount() {
return missionIdList_.size();
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
public int getMissionIdList(int index) {
return missionIdList_.getInt(index);
}
private int missionIdListMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getMissionIdListList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(missionIdListMemoizedSerializedSize);
}
for (int i = 0; i < missionIdList_.size(); i++) {
output.writeUInt32NoTag(missionIdList_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < missionIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(missionIdList_.getInt(i));
}
size += dataSize;
if (!getMissionIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
missionIdListMemoizedSerializedSize = dataSize;
}
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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq other = (emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq) obj;
if (!getMissionIdListList()
.equals(other.getMissionIdListList())) 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();
if (getMissionIdListCount() > 0) {
hash = (37 * hash) + MISSION_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMissionIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq 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;
}
/**
* <pre>
* CmdId: 2629
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassMissionPointReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TakeBattlePassMissionPointReq)
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.internal_static_TakeBattlePassMissionPointReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.internal_static_TakeBattlePassMissionPointReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.class, emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.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();
missionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.internal_static_TakeBattlePassMissionPointReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq build() {
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq buildPartial() {
emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq result = new emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
missionIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.missionIdList_ = missionIdList_;
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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq) {
return mergeFrom((emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq other) {
if (other == emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq.getDefaultInstance()) return this;
if (!other.missionIdList_.isEmpty()) {
if (missionIdList_.isEmpty()) {
missionIdList_ = other.missionIdList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMissionIdListIsMutable();
missionIdList_.addAll(other.missionIdList_);
}
onChanged();
}
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.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList missionIdList_ = emptyIntList();
private void ensureMissionIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
missionIdList_ = mutableCopy(missionIdList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return A list containing the missionIdList.
*/
public java.util.List<java.lang.Integer>
getMissionIdListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(missionIdList_) : missionIdList_;
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return The count of missionIdList.
*/
public int getMissionIdListCount() {
return missionIdList_.size();
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
public int getMissionIdList(int index) {
return missionIdList_.getInt(index);
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param index The index to set the value at.
* @param value The missionIdList to set.
* @return This builder for chaining.
*/
public Builder setMissionIdList(
int index, int value) {
ensureMissionIdListIsMutable();
missionIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param value The missionIdList to add.
* @return This builder for chaining.
*/
public Builder addMissionIdList(int value) {
ensureMissionIdListIsMutable();
missionIdList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @param values The missionIdList to add.
* @return This builder for chaining.
*/
public Builder addAllMissionIdList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureMissionIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, missionIdList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 5;</code>
* @return This builder for chaining.
*/
public Builder clearMissionIdList() {
missionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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:TakeBattlePassMissionPointReq)
}
// @@protoc_insertion_point(class_scope:TakeBattlePassMissionPointReq)
private static final emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq();
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TakeBattlePassMissionPointReq>
PARSER = new com.google.protobuf.AbstractParser<TakeBattlePassMissionPointReq>() {
@java.lang.Override
public TakeBattlePassMissionPointReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TakeBattlePassMissionPointReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<TakeBattlePassMissionPointReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TakeBattlePassMissionPointReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TakeBattlePassMissionPointReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TakeBattlePassMissionPointReq_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#TakeBattlePassMissionPointReq.proto\"8\n" +
"\035TakeBattlePassMissionPointReq\022\027\n\017missio" +
"n_id_list\030\005 \003(\rB\033\n\031emu.grasscutter.net.p" +
"rotob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TakeBattlePassMissionPointReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TakeBattlePassMissionPointReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TakeBattlePassMissionPointReq_descriptor,
new java.lang.String[] { "MissionIdList", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,748 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TakeBattlePassMissionPointRsp.proto
package emu.grasscutter.net.proto;
public final class TakeBattlePassMissionPointRspOuterClass {
private TakeBattlePassMissionPointRspOuterClass() {}
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 TakeBattlePassMissionPointRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:TakeBattlePassMissionPointRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 retcode = 4;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return A list containing the missionIdList.
*/
java.util.List<java.lang.Integer> getMissionIdListList();
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return The count of missionIdList.
*/
int getMissionIdListCount();
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
int getMissionIdList(int index);
}
/**
* <pre>
* CmdId: 2622
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassMissionPointRsp}
*/
public static final class TakeBattlePassMissionPointRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TakeBattlePassMissionPointRsp)
TakeBattlePassMissionPointRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use TakeBattlePassMissionPointRsp.newBuilder() to construct.
private TakeBattlePassMissionPointRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TakeBattlePassMissionPointRsp() {
missionIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TakeBattlePassMissionPointRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TakeBattlePassMissionPointRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 32: {
retcode_ = input.readInt32();
break;
}
case 88: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
missionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
missionIdList_.addInt(input.readUInt32());
break;
}
case 90: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
missionIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
missionIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
missionIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.internal_static_TakeBattlePassMissionPointRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.internal_static_TakeBattlePassMissionPointRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.class, emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 4;
private int retcode_;
/**
* <code>int32 retcode = 4;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int MISSION_ID_LIST_FIELD_NUMBER = 11;
private com.google.protobuf.Internal.IntList missionIdList_;
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return A list containing the missionIdList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getMissionIdListList() {
return missionIdList_;
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return The count of missionIdList.
*/
public int getMissionIdListCount() {
return missionIdList_.size();
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
public int getMissionIdList(int index) {
return missionIdList_.getInt(index);
}
private int missionIdListMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (retcode_ != 0) {
output.writeInt32(4, retcode_);
}
if (getMissionIdListList().size() > 0) {
output.writeUInt32NoTag(90);
output.writeUInt32NoTag(missionIdListMemoizedSerializedSize);
}
for (int i = 0; i < missionIdList_.size(); i++) {
output.writeUInt32NoTag(missionIdList_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, retcode_);
}
{
int dataSize = 0;
for (int i = 0; i < missionIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(missionIdList_.getInt(i));
}
size += dataSize;
if (!getMissionIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
missionIdListMemoizedSerializedSize = dataSize;
}
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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp other = (emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp) obj;
if (getRetcode()
!= other.getRetcode()) return false;
if (!getMissionIdListList()
.equals(other.getMissionIdListList())) 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) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
if (getMissionIdListCount() > 0) {
hash = (37 * hash) + MISSION_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMissionIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp 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;
}
/**
* <pre>
* CmdId: 2622
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassMissionPointRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TakeBattlePassMissionPointRsp)
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.internal_static_TakeBattlePassMissionPointRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.internal_static_TakeBattlePassMissionPointRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.class, emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.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();
retcode_ = 0;
missionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.internal_static_TakeBattlePassMissionPointRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp build() {
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp buildPartial() {
emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp result = new emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp(this);
int from_bitField0_ = bitField0_;
result.retcode_ = retcode_;
if (((bitField0_ & 0x00000001) != 0)) {
missionIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.missionIdList_ = missionIdList_;
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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp) {
return mergeFrom((emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp other) {
if (other == emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp.getDefaultInstance()) return this;
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (!other.missionIdList_.isEmpty()) {
if (missionIdList_.isEmpty()) {
missionIdList_ = other.missionIdList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMissionIdListIsMutable();
missionIdList_.addAll(other.missionIdList_);
}
onChanged();
}
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.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retcode_ ;
/**
* <code>int32 retcode = 4;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 4;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 4;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList missionIdList_ = emptyIntList();
private void ensureMissionIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
missionIdList_ = mutableCopy(missionIdList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return A list containing the missionIdList.
*/
public java.util.List<java.lang.Integer>
getMissionIdListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(missionIdList_) : missionIdList_;
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return The count of missionIdList.
*/
public int getMissionIdListCount() {
return missionIdList_.size();
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param index The index of the element to return.
* @return The missionIdList at the given index.
*/
public int getMissionIdList(int index) {
return missionIdList_.getInt(index);
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param index The index to set the value at.
* @param value The missionIdList to set.
* @return This builder for chaining.
*/
public Builder setMissionIdList(
int index, int value) {
ensureMissionIdListIsMutable();
missionIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param value The missionIdList to add.
* @return This builder for chaining.
*/
public Builder addMissionIdList(int value) {
ensureMissionIdListIsMutable();
missionIdList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @param values The missionIdList to add.
* @return This builder for chaining.
*/
public Builder addAllMissionIdList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureMissionIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, missionIdList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 mission_id_list = 11;</code>
* @return This builder for chaining.
*/
public Builder clearMissionIdList() {
missionIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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:TakeBattlePassMissionPointRsp)
}
// @@protoc_insertion_point(class_scope:TakeBattlePassMissionPointRsp)
private static final emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp();
}
public static emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TakeBattlePassMissionPointRsp>
PARSER = new com.google.protobuf.AbstractParser<TakeBattlePassMissionPointRsp>() {
@java.lang.Override
public TakeBattlePassMissionPointRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TakeBattlePassMissionPointRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<TakeBattlePassMissionPointRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TakeBattlePassMissionPointRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass.TakeBattlePassMissionPointRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TakeBattlePassMissionPointRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TakeBattlePassMissionPointRsp_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#TakeBattlePassMissionPointRsp.proto\"I\n" +
"\035TakeBattlePassMissionPointRsp\022\017\n\007retcod" +
"e\030\004 \001(\005\022\027\n\017mission_id_list\030\013 \003(\rB\033\n\031emu." +
"grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TakeBattlePassMissionPointRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TakeBattlePassMissionPointRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TakeBattlePassMissionPointRsp_descriptor,
new java.lang.String[] { "Retcode", "MissionIdList", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,859 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TakeBattlePassRewardReq.proto
package emu.grasscutter.net.proto;
public final class TakeBattlePassRewardReqOuterClass {
private TakeBattlePassRewardReqOuterClass() {}
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 TakeBattlePassRewardReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:TakeBattlePassRewardReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption>
getTakeOptionListList();
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getTakeOptionList(int index);
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
int getTakeOptionListCount();
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder>
getTakeOptionListOrBuilderList();
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder getTakeOptionListOrBuilder(
int index);
}
/**
* <pre>
* CmdId: 2602
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassRewardReq}
*/
public static final class TakeBattlePassRewardReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TakeBattlePassRewardReq)
TakeBattlePassRewardReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use TakeBattlePassRewardReq.newBuilder() to construct.
private TakeBattlePassRewardReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TakeBattlePassRewardReq() {
takeOptionList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TakeBattlePassRewardReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TakeBattlePassRewardReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
takeOptionList_ = new java.util.ArrayList<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption>();
mutable_bitField0_ |= 0x00000001;
}
takeOptionList_.add(
input.readMessage(emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
takeOptionList_ = java.util.Collections.unmodifiableList(takeOptionList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.internal_static_TakeBattlePassRewardReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.internal_static_TakeBattlePassRewardReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.class, emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.Builder.class);
}
public static final int TAKE_OPTION_LIST_FIELD_NUMBER = 12;
private java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption> takeOptionList_;
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption> getTakeOptionListList() {
return takeOptionList_;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder>
getTakeOptionListOrBuilderList() {
return takeOptionList_;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
@java.lang.Override
public int getTakeOptionListCount() {
return takeOptionList_.size();
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getTakeOptionList(int index) {
return takeOptionList_.get(index);
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder getTakeOptionListOrBuilder(
int index) {
return takeOptionList_.get(index);
}
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 {
for (int i = 0; i < takeOptionList_.size(); i++) {
output.writeMessage(12, takeOptionList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < takeOptionList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, takeOptionList_.get(i));
}
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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq other = (emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq) obj;
if (!getTakeOptionListList()
.equals(other.getTakeOptionListList())) 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();
if (getTakeOptionListCount() > 0) {
hash = (37 * hash) + TAKE_OPTION_LIST_FIELD_NUMBER;
hash = (53 * hash) + getTakeOptionListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq 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;
}
/**
* <pre>
* CmdId: 2602
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code TakeBattlePassRewardReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TakeBattlePassRewardReq)
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.internal_static_TakeBattlePassRewardReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.internal_static_TakeBattlePassRewardReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.class, emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTakeOptionListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (takeOptionListBuilder_ == null) {
takeOptionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
takeOptionListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.internal_static_TakeBattlePassRewardReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq build() {
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq buildPartial() {
emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq result = new emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq(this);
int from_bitField0_ = bitField0_;
if (takeOptionListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
takeOptionList_ = java.util.Collections.unmodifiableList(takeOptionList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.takeOptionList_ = takeOptionList_;
} else {
result.takeOptionList_ = takeOptionListBuilder_.build();
}
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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq) {
return mergeFrom((emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq other) {
if (other == emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq.getDefaultInstance()) return this;
if (takeOptionListBuilder_ == null) {
if (!other.takeOptionList_.isEmpty()) {
if (takeOptionList_.isEmpty()) {
takeOptionList_ = other.takeOptionList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTakeOptionListIsMutable();
takeOptionList_.addAll(other.takeOptionList_);
}
onChanged();
}
} else {
if (!other.takeOptionList_.isEmpty()) {
if (takeOptionListBuilder_.isEmpty()) {
takeOptionListBuilder_.dispose();
takeOptionListBuilder_ = null;
takeOptionList_ = other.takeOptionList_;
bitField0_ = (bitField0_ & ~0x00000001);
takeOptionListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTakeOptionListFieldBuilder() : null;
} else {
takeOptionListBuilder_.addAllMessages(other.takeOptionList_);
}
}
}
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.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption> takeOptionList_ =
java.util.Collections.emptyList();
private void ensureTakeOptionListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
takeOptionList_ = new java.util.ArrayList<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption>(takeOptionList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder> takeOptionListBuilder_;
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption> getTakeOptionListList() {
if (takeOptionListBuilder_ == null) {
return java.util.Collections.unmodifiableList(takeOptionList_);
} else {
return takeOptionListBuilder_.getMessageList();
}
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public int getTakeOptionListCount() {
if (takeOptionListBuilder_ == null) {
return takeOptionList_.size();
} else {
return takeOptionListBuilder_.getCount();
}
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption getTakeOptionList(int index) {
if (takeOptionListBuilder_ == null) {
return takeOptionList_.get(index);
} else {
return takeOptionListBuilder_.getMessage(index);
}
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder setTakeOptionList(
int index, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption value) {
if (takeOptionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTakeOptionListIsMutable();
takeOptionList_.set(index, value);
onChanged();
} else {
takeOptionListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder setTakeOptionList(
int index, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder builderForValue) {
if (takeOptionListBuilder_ == null) {
ensureTakeOptionListIsMutable();
takeOptionList_.set(index, builderForValue.build());
onChanged();
} else {
takeOptionListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder addTakeOptionList(emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption value) {
if (takeOptionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTakeOptionListIsMutable();
takeOptionList_.add(value);
onChanged();
} else {
takeOptionListBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder addTakeOptionList(
int index, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption value) {
if (takeOptionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTakeOptionListIsMutable();
takeOptionList_.add(index, value);
onChanged();
} else {
takeOptionListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder addTakeOptionList(
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder builderForValue) {
if (takeOptionListBuilder_ == null) {
ensureTakeOptionListIsMutable();
takeOptionList_.add(builderForValue.build());
onChanged();
} else {
takeOptionListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder addTakeOptionList(
int index, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder builderForValue) {
if (takeOptionListBuilder_ == null) {
ensureTakeOptionListIsMutable();
takeOptionList_.add(index, builderForValue.build());
onChanged();
} else {
takeOptionListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder addAllTakeOptionList(
java.lang.Iterable<? extends emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption> values) {
if (takeOptionListBuilder_ == null) {
ensureTakeOptionListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, takeOptionList_);
onChanged();
} else {
takeOptionListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder clearTakeOptionList() {
if (takeOptionListBuilder_ == null) {
takeOptionList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
takeOptionListBuilder_.clear();
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public Builder removeTakeOptionList(int index) {
if (takeOptionListBuilder_ == null) {
ensureTakeOptionListIsMutable();
takeOptionList_.remove(index);
onChanged();
} else {
takeOptionListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder getTakeOptionListBuilder(
int index) {
return getTakeOptionListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder getTakeOptionListOrBuilder(
int index) {
if (takeOptionListBuilder_ == null) {
return takeOptionList_.get(index); } else {
return takeOptionListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder>
getTakeOptionListOrBuilderList() {
if (takeOptionListBuilder_ != null) {
return takeOptionListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(takeOptionList_);
}
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder addTakeOptionListBuilder() {
return getTakeOptionListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.getDefaultInstance());
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder addTakeOptionListBuilder(
int index) {
return getTakeOptionListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.getDefaultInstance());
}
/**
* <code>repeated .BattlePassRewardTakeOption take_option_list = 12;</code>
*/
public java.util.List<emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder>
getTakeOptionListBuilderList() {
return getTakeOptionListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder>
getTakeOptionListFieldBuilder() {
if (takeOptionListBuilder_ == null) {
takeOptionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption.Builder, emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOptionOrBuilder>(
takeOptionList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
takeOptionList_ = null;
}
return takeOptionListBuilder_;
}
@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:TakeBattlePassRewardReq)
}
// @@protoc_insertion_point(class_scope:TakeBattlePassRewardReq)
private static final emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq();
}
public static emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TakeBattlePassRewardReq>
PARSER = new com.google.protobuf.AbstractParser<TakeBattlePassRewardReq>() {
@java.lang.Override
public TakeBattlePassRewardReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TakeBattlePassRewardReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<TakeBattlePassRewardReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TakeBattlePassRewardReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TakeBattlePassRewardReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TakeBattlePassRewardReq_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\035TakeBattlePassRewardReq.proto\032 BattleP" +
"assRewardTakeOption.proto\"P\n\027TakeBattleP" +
"assRewardReq\0225\n\020take_option_list\030\014 \003(\0132\033" +
".BattlePassRewardTakeOptionB\033\n\031emu.grass" +
"cutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.getDescriptor(),
});
internal_static_TakeBattlePassRewardReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TakeBattlePassRewardReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TakeBattlePassRewardReq_descriptor,
new java.lang.String[] { "TakeOptionList", });
emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -8,8 +8,10 @@ import emu.grasscutter.data.GameResource;
import emu.grasscutter.data.ResourceType;
import emu.grasscutter.game.props.BattlePassMissionRefreshType;
import emu.grasscutter.game.props.WatcherTriggerType;
import emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.MissionStatus;
import lombok.Getter;
import lombok.val;
import messages.battle_pass.BattlePassMission;
import messages.battle_pass.MissionStatus;
@ResourceType(name = {"BattlePassMissionExcelConfigData.json"})
@Getter
@ -54,16 +56,13 @@ public class BattlePassMissionData extends GameResource {
private String[] paramList;
}
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission toProto() {
var protoBuilder = emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.newBuilder();
public BattlePassMission toProto() {
val protoBuilder = new BattlePassMission(0, getId(), MissionStatus.MISSION_UNFINISHED);
protoBuilder
.setMissionId(getId())
.setTotalProgress(this.getProgress())
.setRewardBattlePassPoint(this.getAddPoint())
.setMissionStatus(MissionStatus.MISSION_STATUS_UNFINISHED)
.setMissionType(this.getRefreshType() == null ? 0 : this.getRefreshType().getValue());
protoBuilder.setTotalProgress(this.getProgress());
protoBuilder.setRewardBattlePassPoint(this.getAddPoint());
protoBuilder.setMissionType(this.getRefreshType() == null ? 0 : this.getRefreshType().getValue());
return protoBuilder.build();
return protoBuilder;
}
}

View File

@ -10,6 +10,11 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import lombok.val;
import messages.battle_pass.BattlePassCycle;
import messages.battle_pass.BattlePassRewardTakeOption;
import messages.battle_pass.BattlePassSchedule;
import messages.battle_pass.BattlePassUnlockStatus;
import org.bson.types.ObjectId;
import dev.morphia.annotations.Entity;
@ -31,10 +36,6 @@ import emu.grasscutter.game.props.BattlePassMissionRefreshType;
import emu.grasscutter.game.props.BattlePassMissionStatus;
import emu.grasscutter.game.props.ItemUseOp;
import emu.grasscutter.game.props.WatcherTriggerType;
import emu.grasscutter.net.proto.BattlePassCycleOuterClass.BattlePassCycle;
import emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus;
import emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption;
import emu.grasscutter.net.proto.BattlePassScheduleOuterClass.BattlePassSchedule;
import emu.grasscutter.server.packet.send.PacketBattlePassCurScheduleUpdateNotify;
import emu.grasscutter.server.packet.send.PacketBattlePassMissionUpdateNotify;
import emu.grasscutter.server.packet.send.PacketTakeBattlePassRewardRsp;
@ -285,7 +286,7 @@ public class BattlePassManager extends BasePlayerDataManager {
}
// Construct the reward and set as taken.
BattlePassReward bpReward = new BattlePassReward(tag.getLevel(), tag.getRewardId(), tag.getUnlockStatus() == BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_PAID);
BattlePassReward bpReward = new BattlePassReward(tag.getLevel(), tag.getRewardId(), tag.getUnlockStatus() == BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_PAID);
this.getTakenRewards().put(bpReward.getRewardId(), bpReward);
}
@ -353,33 +354,26 @@ public class BattlePassManager extends BasePlayerDataManager {
//
public BattlePassSchedule getScheduleProto() {
var currentDate = LocalDate.now();
var nextSundayDate = (currentDate.getDayOfWeek() == DayOfWeek.SUNDAY)
val currentDate = LocalDate.now();
val nextSundayDate = (currentDate.getDayOfWeek() == DayOfWeek.SUNDAY)
? currentDate
: LocalDate.now().with(TemporalAdjusters.next(DayOfWeek.SUNDAY));
var nextSundayTime = LocalDateTime.of(nextSundayDate.getYear(), nextSundayDate.getMonthValue(), nextSundayDate.getDayOfMonth(), 23, 59, 59);
val nextSundayTime = LocalDateTime.of(nextSundayDate.getYear(), nextSundayDate.getMonthValue(), nextSundayDate.getDayOfMonth(), 23, 59, 59);
val cycle = new BattlePassCycle(0, 3 ,
(int)nextSundayTime.atZone(ZoneId.systemDefault()).toEpochSecond());
BattlePassSchedule.Builder schedule = BattlePassSchedule.newBuilder()
.setScheduleId(2700)
.setLevel(this.getLevel())
.setPoint(this.getPoint())
.setBeginTime(0)
.setEndTime(2059483200)
.setIsViewed(this.isViewed())
.setUnlockStatus(this.isPaid() ? BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_PAID : BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_FREE)
.setUnk2700ODHAAHEPFAG(2) // Not bought on Playstation.
.setCurCyclePoints(this.getCyclePoints())
.setCurCycle(BattlePassCycle.newBuilder()
.setBeginTime(0)
.setEndTime((int)nextSundayTime.atZone(ZoneId.systemDefault()).toEpochSecond())
.setCycleIdx(3)
);
val schedule = new BattlePassSchedule(0,cycle,2059483200);
schedule.setScheduleId(2700);
schedule.setLevel(this.getLevel());
schedule.setPoint(this.getPoint());
schedule.setViewed(this.isViewed());
schedule.setUnlockStatus(this.isPaid() ? BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_PAID : BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_FREE);
schedule.setPaidPlatformFlags(2); // Not bought on Playstation.
schedule.setCurCyclePoints(this.getCyclePoints());
for (BattlePassReward reward : getTakenRewards().values()) {
schedule.addRewardTakenList(reward.toProto());
}
schedule.setRewardTakenList(getTakenRewards().values().stream().map(BattlePassReward::toProto).toList());
return schedule.build();
return schedule;
}
public void save() {

View File

@ -11,13 +11,13 @@ public class BattlePassMission {
private int id;
private int progress;
private BattlePassMissionStatus status;
@Transient
private BattlePassMissionData data;
@Deprecated // Morphia only
public BattlePassMission() {}
public BattlePassMission(int id) {
this.id = id;
}
@ -58,17 +58,14 @@ public class BattlePassMission {
return getStatus().getValue() >= 2;
}
public emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission toProto() {
var protoBuilder = emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.newBuilder();
protoBuilder
.setMissionId(getId())
.setCurProgress(getProgress())
.setTotalProgress(getData().getProgress())
.setRewardBattlePassPoint(getData().getAddPoint())
.setMissionStatus(getStatus().getMissionStatus())
.setMissionType(getData().getRefreshType() == null ? 0 : getData().getRefreshType().getValue());
return protoBuilder.build();
public messages.battle_pass.BattlePassMission toProto() {
var proto = new messages.battle_pass.BattlePassMission(getProgress(), getId(),
getStatus().getMissionStatus());
proto.setTotalProgress(getData().getRefreshType() == null ? 0 : getData().getRefreshType().getValue());
proto.setRewardBattlePassPoint(getData().getAddPoint());
proto.setTotalProgress(getData().getProgress());
return proto;
}
}

View File

@ -2,12 +2,10 @@ package emu.grasscutter.game.battlepass;
import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Transient;
import emu.grasscutter.data.GameData;
import emu.grasscutter.data.excels.BattlePassMissionData;
import emu.grasscutter.data.excels.BattlePassRewardData;
import emu.grasscutter.game.props.BattlePassMissionStatus;
import emu.grasscutter.net.proto.BattlePassRewardTagOuterClass.BattlePassRewardTag;
import emu.grasscutter.net.proto.BattlePassUnlockStatusOuterClass.BattlePassUnlockStatus;
import lombok.val;
import messages.battle_pass.BattlePassRewardTag;
import messages.battle_pass.BattlePassUnlockStatus;
@Entity
public class BattlePassReward {
@ -17,10 +15,10 @@ public class BattlePassReward {
@Transient
private BattlePassMissionData data;
@Deprecated // Morphia only
public BattlePassReward() {}
public BattlePassReward(int level, int rewardId, boolean paid) {
this.level = level;
this.rewardId = rewardId;
@ -40,13 +38,7 @@ public class BattlePassReward {
}
public BattlePassRewardTag toProto() {
var protoBuilder = BattlePassRewardTag.newBuilder();
protoBuilder
.setLevel(this.getLevel())
.setRewardId(this.getRewardId())
.setUnlockStatus(this.isPaid() ? BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_PAID : BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_STATUS_FREE);
return protoBuilder.build();
val status = this.paid ? BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_PAID : BattlePassUnlockStatus.BATTLE_PASS_UNLOCK_FREE;
return new BattlePassRewardTag(this.level, this.rewardId, status);
}
}

View File

@ -45,6 +45,6 @@ public class TowerResult extends BaseDungeonResult {
CONTINUE_STATE_TYPE_CAN_NOT_CONTINUE_VALUE)
.addAllFinishedStarCondList(IntStream.rangeClosed(1, this.stars).boxed().toList())
.setNextFloorId(this.hasNextFloor ? this.nextFloorId : 0)
.addAllRewardItemList(this.rewardItems.stream().map(GameItem::toItemParam).toList()));
.addAllRewardItemList(this.rewardItems.stream().map(GameItem::toItemParamOld).toList()));
}
}

View File

@ -2,7 +2,6 @@ package emu.grasscutter.game.gacha;
import static emu.grasscutter.config.Configuration.*;
import java.io.File;
import java.nio.file.*;
import java.util.ArrayList;
import java.util.List;
@ -338,7 +337,7 @@ public class GachaSystem extends BaseGameSystem {
// Create item
GameItem item = new GameItem(itemData);
gachaItem.setGachaItem(item.toItemParam());
gachaItem.setGachaItem(item.toItemParamOld());
inventory.addItem(item);
stardust += addStardust;

View File

@ -12,7 +12,7 @@ import emu.grasscutter.game.entity.EntityWeapon;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.game.props.FightProperty;
import emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint;
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
import emu.grasscutter.net.proto.ItemParamOuterClass;
import emu.grasscutter.utils.WeightedList;
import lombok.Getter;
import lombok.Setter;
@ -286,7 +286,10 @@ public class GameItem {
.build();
}
public ItemParamOuterClass.ItemParam toItemParamOld() {
return ItemParamOuterClass.ItemParam.newBuilder().setItemId(this.itemId).setCount(this.count).build();
}
public ItemParam toItemParam() {
return ItemParam.newBuilder().setItemId(this.itemId).setCount(this.count).build();
return new ItemParam(this.itemId, this.count);
}
}

View File

@ -1,16 +1,17 @@
package emu.grasscutter.game.props;
import emu.grasscutter.net.proto.BattlePassMissionOuterClass.BattlePassMission.MissionStatus;
import messages.battle_pass.MissionStatus;
public enum BattlePassMissionStatus {
MISSION_STATUS_INVALID (0, MissionStatus.MISSION_STATUS_INVALID),
MISSION_STATUS_UNFINISHED (1, MissionStatus.MISSION_STATUS_UNFINISHED),
MISSION_STATUS_FINISHED (2, MissionStatus.MISSION_STATUS_FINISHED),
MISSION_STATUS_POINT_TAKEN (3, MissionStatus.MISSION_STATUS_POINT_TAKEN);
MISSION_STATUS_INVALID (0, MissionStatus.MISSION_INVALID),
MISSION_STATUS_UNFINISHED (1, MissionStatus.MISSION_UNFINISHED),
MISSION_STATUS_FINISHED (2, MissionStatus.MISSION_FINISHED),
MISSION_STATUS_POINT_TAKEN (3, MissionStatus.MISSION_POINT_TAKEN);
private final int value;
private final MissionStatus missionStatus;
BattlePassMissionStatus(int value, MissionStatus missionStatus) {
this.value = value;
this.missionStatus = missionStatus; // In case proto enum values change later

View File

@ -1,20 +1,15 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.TakeBattlePassMissionPointReqOuterClass.TakeBattlePassMissionPointReq;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketTakeBattlePassMissionPointRsp;
import messages.battle_pass.TakeBattlePassMissionPointReq;
@Opcodes(PacketOpcodes.TakeBattlePassMissionPointReq)
public class HandlerTakeBattlePassMissionPointReq extends PacketHandler {
public class HandlerTakeBattlePassMissionPointReq extends TypedPacketHandler<TakeBattlePassMissionPointReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
var req = TakeBattlePassMissionPointReq.parseFrom(payload);
session.getPlayer().getBattlePassManager().takeMissionPoint(req.getMissionIdListList());
public void handle(GameSession session, byte[] header, TakeBattlePassMissionPointReq req) throws Exception {
session.getPlayer().getBattlePassManager().takeMissionPoint(req.getMissionIdList());
session.send(new PacketTakeBattlePassMissionPointRsp());
}

View File

@ -1,18 +1,12 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.TakeBattlePassRewardReqOuterClass.TakeBattlePassRewardReq;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketTakeBattlePassRewardRsp;
import messages.battle_pass.TakeBattlePassRewardReq;
@Opcodes(PacketOpcodes.TakeBattlePassRewardReq)
public class HandlerTakeBattlePassRewardReq extends PacketHandler {
public class HandlerTakeBattlePassRewardReq extends TypedPacketHandler<TakeBattlePassRewardReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
var req = TakeBattlePassRewardReq.parseFrom(payload);
session.getPlayer().getBattlePassManager().takeReward(req.getTakeOptionListList());
public void handle(GameSession session, byte[] header, TakeBattlePassRewardReq req) throws Exception {
session.getPlayer().getBattlePassManager().takeReward(req.getTakeOptionList());
}
}

View File

@ -15,7 +15,7 @@ public class PacketAvatarExpeditionGetRewardRsp extends BasePacket {
AvatarExpeditionGetRewardRsp.Builder proto = AvatarExpeditionGetRewardRsp.newBuilder();
expeditionInfo.forEach((key, e) -> proto.putExpeditionInfoMap(key, e.toProto()));
items.forEach(item -> proto.addItemList(item.toItemParam()));
items.forEach(item -> proto.addItemList(item.toItemParamOld()));
this.setData(proto.build());
}

View File

@ -1,39 +1,31 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.data.GameData;
import emu.grasscutter.data.excels.BattlePassMissionData;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.*;
import emu.grasscutter.net.proto.BattlePassAllDataNotifyOuterClass.BattlePassAllDataNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import lombok.val;
import messages.battle_pass.BattlePassAllDataNotify;
import java.util.ArrayList;
import java.util.List;
public class PacketBattlePassAllDataNotify extends BasePacket {
public class PacketBattlePassAllDataNotify extends BaseTypedPacket<BattlePassAllDataNotify> {
public PacketBattlePassAllDataNotify(Player player) {
super(PacketOpcodes.BattlePassAllDataNotify);
super(new BattlePassAllDataNotify());
var proto = BattlePassAllDataNotify.newBuilder();
proto
.setHaveCurSchedule(true)
.setCurSchedule(player.getBattlePassManager().getScheduleProto());
proto.setHaveCurSchedule(true);
proto.setCurSchedule(player.getBattlePassManager().getScheduleProto());
for (var missionData : GameData.getBattlePassMissionDataMap().values()) {
// Dont send invalid refresh types
if (!missionData.isValidRefreshType()) {
continue;
}
// Check if player has mission in bp manager. If not, then add an empty proto from the mission data
if (player.getBattlePassManager().hasMission(missionData.getId())) {
proto.addMissionList(player.getBattlePassManager().loadMissionById(missionData.getId()).toProto());
} else {
proto.addMissionList(missionData.toProto());
}
}
setData(proto.build());
val missions = GameData.getBattlePassMissionDataMap().values().stream()
// Don't send invalid refresh types
.filter(BattlePassMissionData::isValidRefreshType)
.map(missionData -> {
// Check if player has mission in bp manager. If not, then add an empty proto from the mission data
if (player.getBattlePassManager().hasMission(missionData.getId())) {
return player.getBattlePassManager().loadMissionById(missionData.getId()).toProto();
} else {
return missionData.toProto();
}
}).toList();
proto.setMissionList(missions);
}
}

View File

@ -1,27 +1,15 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.*;
import emu.grasscutter.net.proto.BattlePassCurScheduleUpdateNotifyOuterClass.BattlePassCurScheduleUpdateNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import messages.battle_pass.BattlePassCurScheduleUpdateNotify;
import java.util.ArrayList;
import java.util.List;
public class PacketBattlePassCurScheduleUpdateNotify extends BaseTypedPacket<BattlePassCurScheduleUpdateNotify> {
public class PacketBattlePassCurScheduleUpdateNotify extends BasePacket {
public PacketBattlePassCurScheduleUpdateNotify(Player player) {
super(PacketOpcodes.BattlePassCurScheduleUpdateNotify);
var proto = BattlePassCurScheduleUpdateNotify.newBuilder();
proto
.setHaveCurSchedule(true)
.setCurSchedule(player.getBattlePassManager().getScheduleProto())
.build();
setData(proto.build());
super(new BattlePassCurScheduleUpdateNotify());
proto.setHaveCurSchedule(true);
proto.setCurSchedule(player.getBattlePassManager().getScheduleProto());
}
}

View File

@ -1,34 +1,24 @@
package emu.grasscutter.server.packet.send;
import java.util.Collection;
import java.util.List;
import emu.grasscutter.game.battlepass.BattlePassMission;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.BattlePassMissionUpdateNotifyOuterClass.BattlePassMissionUpdateNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import messages.battle_pass.BattlePassMissionUpdateNotify;
public class PacketBattlePassMissionUpdateNotify extends BasePacket {
public class PacketBattlePassMissionUpdateNotify extends BaseTypedPacket<BattlePassMissionUpdateNotify> {
public PacketBattlePassMissionUpdateNotify(BattlePassMission mission) {
super(PacketOpcodes.BattlePassMissionUpdateNotify);
var proto = BattlePassMissionUpdateNotify.newBuilder()
.addMissionList(mission.toProto())
.build();
this.setData(proto);
this(List.of(mission.toProto()));
}
public PacketBattlePassMissionUpdateNotify(Collection<BattlePassMission> missions) {
super(PacketOpcodes.BattlePassMissionUpdateNotify);
this(missions.stream().map(BattlePassMission::toProto).toList());
}
var proto = BattlePassMissionUpdateNotify.newBuilder();
missions.forEach(mission -> {
proto.addMissionList(mission.toProto());
});
this.setData(proto.build());
protected PacketBattlePassMissionUpdateNotify(List<messages.battle_pass.BattlePassMission> protoMissions) {
super(new BattlePassMissionUpdateNotify(protoMissions));
}
}

View File

@ -1,13 +1,10 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.TakeBattlePassMissionPointRspOuterClass;
import emu.grasscutter.net.packet.BaseTypedPacket;
import messages.battle_pass.TakeBattlePassMissionPointRsp;
import java.util.List;
public class PacketTakeBattlePassMissionPointRsp extends BasePacket {
public class PacketTakeBattlePassMissionPointRsp extends BaseTypedPacket<TakeBattlePassMissionPointRsp> {
public PacketTakeBattlePassMissionPointRsp() {
super(PacketOpcodes.TakeBattlePassMissionPointRsp);
super(new TakeBattlePassMissionPointRsp()); // TODO also send missions?
}
}

View File

@ -1,29 +1,17 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.data.common.ItemParamData;
import emu.grasscutter.game.inventory.GameItem;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.BattlePassRewardTakeOptionOuterClass.BattlePassRewardTakeOption;
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
import emu.grasscutter.net.proto.TakeBattlePassRewardRspOuterClass.TakeBattlePassRewardRsp;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.net.packet.BaseTypedPacket;
import messages.battle_pass.BattlePassRewardTakeOption;
import messages.battle_pass.TakeBattlePassRewardRsp;
import java.util.List;
public class PacketTakeBattlePassRewardRsp extends BasePacket {
public class PacketTakeBattlePassRewardRsp extends BaseTypedPacket<TakeBattlePassRewardRsp> {
public PacketTakeBattlePassRewardRsp(List<BattlePassRewardTakeOption> takeOptionList, List<GameItem> rewardItems) {
super(PacketOpcodes.TakeBattlePassRewardRsp);
super(new TakeBattlePassRewardRsp());
var proto = TakeBattlePassRewardRsp.newBuilder()
.addAllTakeOptionList(takeOptionList);
if (rewardItems != null) {
for (var item : rewardItems) {
proto.addItemList(ItemParam.newBuilder().setItemId(item.getItemId()).setCount(item.getCount()));
}
}
setData(proto);
proto.setTakeOptionList(takeOptionList);
proto.setItemList(rewardItems.stream().map(GameItem::toItemParam).toList());
}
}