Update(5.0): protocol definitions

This commit is contained in:
HongchengQ
2024-10-02 23:21:24 +08:00
Unverified
parent c663b60c1d
commit 6ff42dd0b0
263 changed files with 41050 additions and 33748 deletions
@@ -19,62 +19,62 @@ public final class CoopDataNotifyOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_have_progress = 7;</code>
* <code>bool is_have_progress = 3;</code>
* @return The isHaveProgress.
*/
boolean getIsHaveProgress();
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return A list containing the viewedChapterList.
*/
java.util.List<java.lang.Integer> getViewedChapterListList();
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return The count of viewedChapterList.
*/
int getViewedChapterListCount();
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param index The index of the element to return.
* @return The viewedChapterList at the given index.
*/
int getViewedChapterList(int index);
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>
getChapterListList();
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index);
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
int getChapterListCount();
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>
getChapterListOrBuilderList();
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder(
int index);
/**
* <code>uint32 cur_coop_point = 9;</code>
* <code>uint32 cur_coop_point = 15;</code>
* @return The curCoopPoint.
*/
int getCurCoopPoint();
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @return A list containing the viewedChapterList.
*/
java.util.List<java.lang.Integer> getViewedChapterListList();
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @return The count of viewedChapterList.
*/
int getViewedChapterListCount();
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @param index The index of the element to return.
* @return The viewedChapterList at the given index.
*/
int getViewedChapterList(int index);
}
/**
* <pre>
* CmdId: 21157
* Obf: BAGILCCBHBF
* CmdId: 25237
* obf: GFEAHJACJIM
* </pre>
*
* Protobuf type {@code CoopDataNotify}
@@ -89,8 +89,8 @@ public final class CoopDataNotifyOuterClass {
super(builder);
}
private CoopDataNotify() {
chapterList_ = java.util.Collections.emptyList();
viewedChapterList_ = emptyIntList();
chapterList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -124,34 +124,25 @@ public final class CoopDataNotifyOuterClass {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
chapterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>();
mutable_bitField0_ |= 0x00000001;
}
chapterList_.add(
input.readMessage(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.parser(), extensionRegistry));
break;
}
case 56: {
case 24: {
isHaveProgress_ = input.readBool();
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
case 48: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
viewedChapterList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
mutable_bitField0_ |= 0x00000001;
}
viewedChapterList_.addInt(input.readUInt32());
break;
}
case 66: {
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
viewedChapterList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
viewedChapterList_.addInt(input.readUInt32());
@@ -159,7 +150,16 @@ public final class CoopDataNotifyOuterClass {
input.popLimit(limit);
break;
}
case 72: {
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
chapterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>();
mutable_bitField0_ |= 0x00000002;
}
chapterList_.add(
input.readMessage(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.parser(), extensionRegistry));
break;
}
case 120: {
curCoopPoint_ = input.readUInt32();
break;
@@ -180,10 +180,10 @@ public final class CoopDataNotifyOuterClass {
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
chapterList_ = java.util.Collections.unmodifiableList(chapterList_);
viewedChapterList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
viewedChapterList_.makeImmutable(); // C
chapterList_ = java.util.Collections.unmodifiableList(chapterList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -202,10 +202,10 @@ public final class CoopDataNotifyOuterClass {
emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.class, emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify.Builder.class);
}
public static final int IS_HAVE_PROGRESS_FIELD_NUMBER = 7;
public static final int IS_HAVE_PROGRESS_FIELD_NUMBER = 3;
private boolean isHaveProgress_;
/**
* <code>bool is_have_progress = 7;</code>
* <code>bool is_have_progress = 3;</code>
* @return The isHaveProgress.
*/
@java.lang.Override
@@ -213,61 +213,10 @@ public final class CoopDataNotifyOuterClass {
return isHaveProgress_;
}
public static final int CHAPTER_LIST_FIELD_NUMBER = 1;
private java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> chapterList_;
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> getChapterListList() {
return chapterList_;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>
getChapterListOrBuilderList() {
return chapterList_;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
*/
@java.lang.Override
public int getChapterListCount() {
return chapterList_.size();
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) {
return chapterList_.get(index);
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder(
int index) {
return chapterList_.get(index);
}
public static final int CUR_COOP_POINT_FIELD_NUMBER = 9;
private int curCoopPoint_;
/**
* <code>uint32 cur_coop_point = 9;</code>
* @return The curCoopPoint.
*/
@java.lang.Override
public int getCurCoopPoint() {
return curCoopPoint_;
}
public static final int VIEWED_CHAPTER_LIST_FIELD_NUMBER = 8;
public static final int VIEWED_CHAPTER_LIST_FIELD_NUMBER = 6;
private com.google.protobuf.Internal.IntList viewedChapterList_;
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return A list containing the viewedChapterList.
*/
@java.lang.Override
@@ -276,14 +225,14 @@ public final class CoopDataNotifyOuterClass {
return viewedChapterList_;
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return The count of viewedChapterList.
*/
public int getViewedChapterListCount() {
return viewedChapterList_.size();
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param index The index of the element to return.
* @return The viewedChapterList at the given index.
*/
@@ -292,6 +241,57 @@ public final class CoopDataNotifyOuterClass {
}
private int viewedChapterListMemoizedSerializedSize = -1;
public static final int CHAPTER_LIST_FIELD_NUMBER = 8;
private java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> chapterList_;
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> getChapterListList() {
return chapterList_;
}
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>
getChapterListOrBuilderList() {
return chapterList_;
}
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
@java.lang.Override
public int getChapterListCount() {
return chapterList_.size();
}
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) {
return chapterList_.get(index);
}
/**
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder(
int index) {
return chapterList_.get(index);
}
public static final int CUR_COOP_POINT_FIELD_NUMBER = 15;
private int curCoopPoint_;
/**
* <code>uint32 cur_coop_point = 15;</code>
* @return The curCoopPoint.
*/
@java.lang.Override
public int getCurCoopPoint() {
return curCoopPoint_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -307,21 +307,21 @@ public final class CoopDataNotifyOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < chapterList_.size(); i++) {
output.writeMessage(1, chapterList_.get(i));
}
if (isHaveProgress_ != false) {
output.writeBool(7, isHaveProgress_);
output.writeBool(3, isHaveProgress_);
}
if (getViewedChapterListList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(viewedChapterListMemoizedSerializedSize);
}
for (int i = 0; i < viewedChapterList_.size(); i++) {
output.writeUInt32NoTag(viewedChapterList_.getInt(i));
}
for (int i = 0; i < chapterList_.size(); i++) {
output.writeMessage(8, chapterList_.get(i));
}
if (curCoopPoint_ != 0) {
output.writeUInt32(9, curCoopPoint_);
output.writeUInt32(15, curCoopPoint_);
}
unknownFields.writeTo(output);
}
@@ -332,13 +332,9 @@ public final class CoopDataNotifyOuterClass {
if (size != -1) return size;
size = 0;
for (int i = 0; i < chapterList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, chapterList_.get(i));
}
if (isHaveProgress_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isHaveProgress_);
.computeBoolSize(3, isHaveProgress_);
}
{
int dataSize = 0;
@@ -354,9 +350,13 @@ public final class CoopDataNotifyOuterClass {
}
viewedChapterListMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < chapterList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, chapterList_.get(i));
}
if (curCoopPoint_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, curCoopPoint_);
.computeUInt32Size(15, curCoopPoint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -375,12 +375,12 @@ public final class CoopDataNotifyOuterClass {
if (getIsHaveProgress()
!= other.getIsHaveProgress()) return false;
if (!getViewedChapterListList()
.equals(other.getViewedChapterListList())) return false;
if (!getChapterListList()
.equals(other.getChapterListList())) return false;
if (getCurCoopPoint()
!= other.getCurCoopPoint()) return false;
if (!getViewedChapterListList()
.equals(other.getViewedChapterListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -395,16 +395,16 @@ public final class CoopDataNotifyOuterClass {
hash = (37 * hash) + IS_HAVE_PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsHaveProgress());
if (getViewedChapterListCount() > 0) {
hash = (37 * hash) + VIEWED_CHAPTER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getViewedChapterListList().hashCode();
}
if (getChapterListCount() > 0) {
hash = (37 * hash) + CHAPTER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getChapterListList().hashCode();
}
hash = (37 * hash) + CUR_COOP_POINT_FIELD_NUMBER;
hash = (53 * hash) + getCurCoopPoint();
if (getViewedChapterListCount() > 0) {
hash = (37 * hash) + VIEWED_CHAPTER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getViewedChapterListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -502,8 +502,8 @@ public final class CoopDataNotifyOuterClass {
}
/**
* <pre>
* CmdId: 21157
* Obf: BAGILCCBHBF
* CmdId: 25237
* obf: GFEAHJACJIM
* </pre>
*
* Protobuf type {@code CoopDataNotify}
@@ -546,16 +546,16 @@ public final class CoopDataNotifyOuterClass {
super.clear();
isHaveProgress_ = false;
viewedChapterList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
if (chapterListBuilder_ == null) {
chapterList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
} else {
chapterListBuilder_.clear();
}
curCoopPoint_ = 0;
viewedChapterList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -584,21 +584,21 @@ public final class CoopDataNotifyOuterClass {
emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify result = new emu.grasscutter.net.proto.CoopDataNotifyOuterClass.CoopDataNotify(this);
int from_bitField0_ = bitField0_;
result.isHaveProgress_ = isHaveProgress_;
if (((bitField0_ & 0x00000001) != 0)) {
viewedChapterList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.viewedChapterList_ = viewedChapterList_;
if (chapterListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
if (((bitField0_ & 0x00000002) != 0)) {
chapterList_ = java.util.Collections.unmodifiableList(chapterList_);
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.chapterList_ = chapterList_;
} else {
result.chapterList_ = chapterListBuilder_.build();
}
result.curCoopPoint_ = curCoopPoint_;
if (((bitField0_ & 0x00000002) != 0)) {
viewedChapterList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.viewedChapterList_ = viewedChapterList_;
onBuilt();
return result;
}
@@ -650,11 +650,21 @@ public final class CoopDataNotifyOuterClass {
if (other.getIsHaveProgress() != false) {
setIsHaveProgress(other.getIsHaveProgress());
}
if (!other.viewedChapterList_.isEmpty()) {
if (viewedChapterList_.isEmpty()) {
viewedChapterList_ = other.viewedChapterList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureViewedChapterListIsMutable();
viewedChapterList_.addAll(other.viewedChapterList_);
}
onChanged();
}
if (chapterListBuilder_ == null) {
if (!other.chapterList_.isEmpty()) {
if (chapterList_.isEmpty()) {
chapterList_ = other.chapterList_;
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureChapterListIsMutable();
chapterList_.addAll(other.chapterList_);
@@ -667,7 +677,7 @@ public final class CoopDataNotifyOuterClass {
chapterListBuilder_.dispose();
chapterListBuilder_ = null;
chapterList_ = other.chapterList_;
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
chapterListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChapterListFieldBuilder() : null;
@@ -679,16 +689,6 @@ public final class CoopDataNotifyOuterClass {
if (other.getCurCoopPoint() != 0) {
setCurCoopPoint(other.getCurCoopPoint());
}
if (!other.viewedChapterList_.isEmpty()) {
if (viewedChapterList_.isEmpty()) {
viewedChapterList_ = other.viewedChapterList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureViewedChapterListIsMutable();
viewedChapterList_.addAll(other.viewedChapterList_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -721,7 +721,7 @@ public final class CoopDataNotifyOuterClass {
private boolean isHaveProgress_ ;
/**
* <code>bool is_have_progress = 7;</code>
* <code>bool is_have_progress = 3;</code>
* @return The isHaveProgress.
*/
@java.lang.Override
@@ -729,7 +729,7 @@ public final class CoopDataNotifyOuterClass {
return isHaveProgress_;
}
/**
* <code>bool is_have_progress = 7;</code>
* <code>bool is_have_progress = 3;</code>
* @param value The isHaveProgress to set.
* @return This builder for chaining.
*/
@@ -740,7 +740,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>bool is_have_progress = 7;</code>
* <code>bool is_have_progress = 3;</code>
* @return This builder for chaining.
*/
public Builder clearIsHaveProgress() {
@@ -750,12 +750,91 @@ public final class CoopDataNotifyOuterClass {
return this;
}
private com.google.protobuf.Internal.IntList viewedChapterList_ = emptyIntList();
private void ensureViewedChapterListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
viewedChapterList_ = mutableCopy(viewedChapterList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return A list containing the viewedChapterList.
*/
public java.util.List<java.lang.Integer>
getViewedChapterListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(viewedChapterList_) : viewedChapterList_;
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return The count of viewedChapterList.
*/
public int getViewedChapterListCount() {
return viewedChapterList_.size();
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param index The index of the element to return.
* @return The viewedChapterList at the given index.
*/
public int getViewedChapterList(int index) {
return viewedChapterList_.getInt(index);
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param index The index to set the value at.
* @param value The viewedChapterList to set.
* @return This builder for chaining.
*/
public Builder setViewedChapterList(
int index, int value) {
ensureViewedChapterListIsMutable();
viewedChapterList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param value The viewedChapterList to add.
* @return This builder for chaining.
*/
public Builder addViewedChapterList(int value) {
ensureViewedChapterListIsMutable();
viewedChapterList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @param values The viewedChapterList to add.
* @return This builder for chaining.
*/
public Builder addAllViewedChapterList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureViewedChapterListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, viewedChapterList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 6;</code>
* @return This builder for chaining.
*/
public Builder clearViewedChapterList() {
viewedChapterList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> chapterList_ =
java.util.Collections.emptyList();
private void ensureChapterListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
if (!((bitField0_ & 0x00000002) != 0)) {
chapterList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter>(chapterList_);
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
}
}
@@ -763,7 +842,7 @@ public final class CoopDataNotifyOuterClass {
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder> chapterListBuilder_;
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> getChapterListList() {
if (chapterListBuilder_ == null) {
@@ -773,7 +852,7 @@ public final class CoopDataNotifyOuterClass {
}
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public int getChapterListCount() {
if (chapterListBuilder_ == null) {
@@ -783,7 +862,7 @@ public final class CoopDataNotifyOuterClass {
}
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) {
if (chapterListBuilder_ == null) {
@@ -793,7 +872,7 @@ public final class CoopDataNotifyOuterClass {
}
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder setChapterList(
int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) {
@@ -810,7 +889,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder setChapterList(
int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) {
@@ -824,7 +903,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder addChapterList(emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) {
if (chapterListBuilder_ == null) {
@@ -840,7 +919,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder addChapterList(
int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter value) {
@@ -857,7 +936,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder addChapterList(
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) {
@@ -871,7 +950,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder addChapterList(
int index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder builderForValue) {
@@ -885,7 +964,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder addAllChapterList(
java.lang.Iterable<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter> values) {
@@ -900,12 +979,12 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder clearChapterList() {
if (chapterListBuilder_ == null) {
chapterList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
chapterListBuilder_.clear();
@@ -913,7 +992,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public Builder removeChapterList(int index) {
if (chapterListBuilder_ == null) {
@@ -926,14 +1005,14 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder getChapterListBuilder(
int index) {
return getChapterListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder(
int index) {
@@ -943,7 +1022,7 @@ public final class CoopDataNotifyOuterClass {
}
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>
getChapterListOrBuilderList() {
@@ -954,14 +1033,14 @@ public final class CoopDataNotifyOuterClass {
}
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder() {
return getChapterListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance());
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder(
int index) {
@@ -969,7 +1048,7 @@ public final class CoopDataNotifyOuterClass {
index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance());
}
/**
* <code>repeated .CoopChapter chapter_list = 1;</code>
* <code>repeated .CoopChapter chapter_list = 8;</code>
*/
public java.util.List<emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder>
getChapterListBuilderList() {
@@ -982,7 +1061,7 @@ public final class CoopDataNotifyOuterClass {
chapterListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder>(
chapterList_,
((bitField0_ & 0x00000001) != 0),
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
chapterList_ = null;
@@ -992,7 +1071,7 @@ public final class CoopDataNotifyOuterClass {
private int curCoopPoint_ ;
/**
* <code>uint32 cur_coop_point = 9;</code>
* <code>uint32 cur_coop_point = 15;</code>
* @return The curCoopPoint.
*/
@java.lang.Override
@@ -1000,7 +1079,7 @@ public final class CoopDataNotifyOuterClass {
return curCoopPoint_;
}
/**
* <code>uint32 cur_coop_point = 9;</code>
* <code>uint32 cur_coop_point = 15;</code>
* @param value The curCoopPoint to set.
* @return This builder for chaining.
*/
@@ -1011,7 +1090,7 @@ public final class CoopDataNotifyOuterClass {
return this;
}
/**
* <code>uint32 cur_coop_point = 9;</code>
* <code>uint32 cur_coop_point = 15;</code>
* @return This builder for chaining.
*/
public Builder clearCurCoopPoint() {
@@ -1020,85 +1099,6 @@ public final class CoopDataNotifyOuterClass {
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList viewedChapterList_ = emptyIntList();
private void ensureViewedChapterListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
viewedChapterList_ = mutableCopy(viewedChapterList_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @return A list containing the viewedChapterList.
*/
public java.util.List<java.lang.Integer>
getViewedChapterListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(viewedChapterList_) : viewedChapterList_;
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @return The count of viewedChapterList.
*/
public int getViewedChapterListCount() {
return viewedChapterList_.size();
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @param index The index of the element to return.
* @return The viewedChapterList at the given index.
*/
public int getViewedChapterList(int index) {
return viewedChapterList_.getInt(index);
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @param index The index to set the value at.
* @param value The viewedChapterList to set.
* @return This builder for chaining.
*/
public Builder setViewedChapterList(
int index, int value) {
ensureViewedChapterListIsMutable();
viewedChapterList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @param value The viewedChapterList to add.
* @return This builder for chaining.
*/
public Builder addViewedChapterList(int value) {
ensureViewedChapterListIsMutable();
viewedChapterList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @param values The viewedChapterList to add.
* @return This builder for chaining.
*/
public Builder addAllViewedChapterList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureViewedChapterListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, viewedChapterList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 viewed_chapter_list = 8;</code>
* @return This builder for chaining.
*/
public Builder clearViewedChapterList() {
viewedChapterList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1168,9 +1168,9 @@ public final class CoopDataNotifyOuterClass {
java.lang.String[] descriptorData = {
"\n\024CoopDataNotify.proto\032\021CoopChapter.prot" +
"o\"\203\001\n\016CoopDataNotify\022\030\n\020is_have_progress" +
"\030\007 \001(\010\022\"\n\014chapter_list\030\001 \003(\0132\014.CoopChapt" +
"er\022\026\n\016cur_coop_point\030\t \001(\r\022\033\n\023viewed_cha" +
"pter_list\030\010 \003(\rB\033\n\031emu.grasscutter.net.p" +
"\030\003 \001(\010\022\033\n\023viewed_chapter_list\030\006 \003(\r\022\"\n\014c" +
"hapter_list\030\010 \003(\0132\014.CoopChapter\022\026\n\016cur_c" +
"oop_point\030\017 \001(\rB\033\n\031emu.grasscutter.net.p" +
"rotob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
@@ -1183,7 +1183,7 @@ public final class CoopDataNotifyOuterClass {
internal_static_CoopDataNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CoopDataNotify_descriptor,
new java.lang.String[] { "IsHaveProgress", "ChapterList", "CurCoopPoint", "ViewedChapterList", });
new java.lang.String[] { "IsHaveProgress", "ViewedChapterList", "ChapterList", "CurCoopPoint", });
emu.grasscutter.net.proto.CoopChapterOuterClass.getDescriptor();
}