mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-27 06:09:51 +08:00
Update gc to 3.3 (#1981)
* replace the deprecated api * update proto * delete music game * fixed codes * fix costume switch * fix mail bug * Bump version number. * Re-add max boss chest number Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
8b83dbf58c
commit
92fbaa8670
+225
-219
@@ -18,6 +18,23 @@ public final class DestroyMaterialRspOuterClass {
|
||||
// @@protoc_insertion_point(interface_extends:DestroyMaterialRsp)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getItemIdListList();
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
int getItemIdListCount();
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
int getItemIdList(int index);
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 item_count_list = 12;</code>
|
||||
* @return A list containing the itemCountList.
|
||||
@@ -36,34 +53,20 @@ public final class DestroyMaterialRspOuterClass {
|
||||
int getItemCountList(int index);
|
||||
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getItemIdListList();
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
int getItemIdListCount();
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
int getItemIdList(int index);
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 11;</code>
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 618
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 608;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code DestroyMaterialRsp}
|
||||
@@ -78,8 +81,8 @@ public final class DestroyMaterialRspOuterClass {
|
||||
super(builder);
|
||||
}
|
||||
private DestroyMaterialRsp() {
|
||||
itemCountList_ = emptyIntList();
|
||||
itemIdList_ = emptyIntList();
|
||||
itemCountList_ = emptyIntList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@@ -113,15 +116,31 @@ public final class DestroyMaterialRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 88: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
case 80: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
itemIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
itemIdList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 82: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
itemIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
itemIdList_.addInt(input.readUInt32());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
itemCountList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
itemCountList_.addInt(input.readUInt32());
|
||||
break;
|
||||
@@ -129,9 +148,9 @@ public final class DestroyMaterialRspOuterClass {
|
||||
case 98: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
itemCountList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
itemCountList_.addInt(input.readUInt32());
|
||||
@@ -140,24 +159,8 @@ public final class DestroyMaterialRspOuterClass {
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
itemIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
itemIdList_.addInt(input.readUInt32());
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
|
||||
itemIdList_ = newIntList();
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
itemIdList_.addInt(input.readUInt32());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@@ -176,10 +179,10 @@ public final class DestroyMaterialRspOuterClass {
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
itemCountList_.makeImmutable(); // C
|
||||
itemIdList_.makeImmutable(); // C
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
itemIdList_.makeImmutable(); // C
|
||||
itemCountList_.makeImmutable(); // C
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
@@ -198,6 +201,34 @@ public final class DestroyMaterialRspOuterClass {
|
||||
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.class, emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ITEM_ID_LIST_FIELD_NUMBER = 10;
|
||||
private com.google.protobuf.Internal.IntList itemIdList_;
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getItemIdListList() {
|
||||
return itemIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
public int getItemIdListCount() {
|
||||
return itemIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
public int getItemIdList(int index) {
|
||||
return itemIdList_.getInt(index);
|
||||
}
|
||||
private int itemIdListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int ITEM_COUNT_LIST_FIELD_NUMBER = 12;
|
||||
private com.google.protobuf.Internal.IntList itemCountList_;
|
||||
/**
|
||||
@@ -226,38 +257,10 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
private int itemCountListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int ITEM_ID_LIST_FIELD_NUMBER = 13;
|
||||
private com.google.protobuf.Internal.IntList itemIdList_;
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getItemIdListList() {
|
||||
return itemIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
public int getItemIdListCount() {
|
||||
return itemIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
public int getItemIdList(int index) {
|
||||
return itemIdList_.getInt(index);
|
||||
}
|
||||
private int itemIdListMemoizedSerializedSize = -1;
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 11;
|
||||
public static final int RETCODE_FIELD_NUMBER = 13;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 11;</code>
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -280,8 +283,12 @@ public final class DestroyMaterialRspOuterClass {
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(11, retcode_);
|
||||
if (getItemIdListList().size() > 0) {
|
||||
output.writeUInt32NoTag(82);
|
||||
output.writeUInt32NoTag(itemIdListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < itemIdList_.size(); i++) {
|
||||
output.writeUInt32NoTag(itemIdList_.getInt(i));
|
||||
}
|
||||
if (getItemCountListList().size() > 0) {
|
||||
output.writeUInt32NoTag(98);
|
||||
@@ -290,12 +297,8 @@ public final class DestroyMaterialRspOuterClass {
|
||||
for (int i = 0; i < itemCountList_.size(); i++) {
|
||||
output.writeUInt32NoTag(itemCountList_.getInt(i));
|
||||
}
|
||||
if (getItemIdListList().size() > 0) {
|
||||
output.writeUInt32NoTag(106);
|
||||
output.writeUInt32NoTag(itemIdListMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < itemIdList_.size(); i++) {
|
||||
output.writeUInt32NoTag(itemIdList_.getInt(i));
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(13, retcode_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -306,9 +309,19 @@ public final class DestroyMaterialRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(11, retcode_);
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < itemIdList_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32SizeNoTag(itemIdList_.getInt(i));
|
||||
}
|
||||
size += dataSize;
|
||||
if (!getItemIdListList().isEmpty()) {
|
||||
size += 1;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(dataSize);
|
||||
}
|
||||
itemIdListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
@@ -324,19 +337,9 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
itemCountListMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < itemIdList_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32SizeNoTag(itemIdList_.getInt(i));
|
||||
}
|
||||
size += dataSize;
|
||||
if (!getItemIdListList().isEmpty()) {
|
||||
size += 1;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(dataSize);
|
||||
}
|
||||
itemIdListMemoizedSerializedSize = dataSize;
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(13, retcode_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -353,10 +356,10 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other = (emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp) obj;
|
||||
|
||||
if (!getItemCountListList()
|
||||
.equals(other.getItemCountListList())) return false;
|
||||
if (!getItemIdListList()
|
||||
.equals(other.getItemIdListList())) return false;
|
||||
if (!getItemCountListList()
|
||||
.equals(other.getItemCountListList())) return false;
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
@@ -370,14 +373,14 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (getItemCountListCount() > 0) {
|
||||
hash = (37 * hash) + ITEM_COUNT_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getItemCountListList().hashCode();
|
||||
}
|
||||
if (getItemIdListCount() > 0) {
|
||||
hash = (37 * hash) + ITEM_ID_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getItemIdListList().hashCode();
|
||||
}
|
||||
if (getItemCountListCount() > 0) {
|
||||
hash = (37 * hash) + ITEM_COUNT_LIST_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getItemCountListList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
@@ -477,10 +480,13 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 618
|
||||
* EnetChannelId: 0
|
||||
* EnetIsReliable: false
|
||||
* IsAllowClient: true
|
||||
* enum CmdId {
|
||||
* option allow_alias = true;
|
||||
* NONE = 0;
|
||||
* CMD_ID = 608;
|
||||
* ENET_CHANNEL_ID = 0;
|
||||
* ENET_IS_RELIABLE = 1;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code DestroyMaterialRsp}
|
||||
@@ -520,9 +526,9 @@ public final class DestroyMaterialRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
itemCountList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
itemIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
itemCountList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
retcode_ = 0;
|
||||
|
||||
@@ -554,15 +560,15 @@ public final class DestroyMaterialRspOuterClass {
|
||||
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp result = new emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
itemCountList_.makeImmutable();
|
||||
itemIdList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.itemCountList_ = itemCountList_;
|
||||
result.itemIdList_ = itemIdList_;
|
||||
if (((bitField0_ & 0x00000002) != 0)) {
|
||||
itemIdList_.makeImmutable();
|
||||
itemCountList_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
}
|
||||
result.itemIdList_ = itemIdList_;
|
||||
result.itemCountList_ = itemCountList_;
|
||||
result.retcode_ = retcode_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@@ -612,26 +618,26 @@ public final class DestroyMaterialRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp.getDefaultInstance()) return this;
|
||||
if (!other.itemCountList_.isEmpty()) {
|
||||
if (itemCountList_.isEmpty()) {
|
||||
itemCountList_ = other.itemCountList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureItemCountListIsMutable();
|
||||
itemCountList_.addAll(other.itemCountList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (!other.itemIdList_.isEmpty()) {
|
||||
if (itemIdList_.isEmpty()) {
|
||||
itemIdList_ = other.itemIdList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureItemIdListIsMutable();
|
||||
itemIdList_.addAll(other.itemIdList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (!other.itemCountList_.isEmpty()) {
|
||||
if (itemCountList_.isEmpty()) {
|
||||
itemCountList_ = other.itemCountList_;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
} else {
|
||||
ensureItemCountListIsMutable();
|
||||
itemCountList_.addAll(other.itemCountList_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
@@ -665,11 +671,90 @@ public final class DestroyMaterialRspOuterClass {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList();
|
||||
private void ensureItemIdListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
itemIdList_ = mutableCopy(itemIdList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getItemIdListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
public int getItemIdListCount() {
|
||||
return itemIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
public int getItemIdList(int index) {
|
||||
return itemIdList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The itemIdList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setItemIdList(
|
||||
int index, int value) {
|
||||
ensureItemIdListIsMutable();
|
||||
itemIdList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param value The itemIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addItemIdList(int value) {
|
||||
ensureItemIdListIsMutable();
|
||||
itemIdList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @param values The itemIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllItemIdList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureItemIdListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, itemIdList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearItemIdList() {
|
||||
itemIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList itemCountList_ = emptyIntList();
|
||||
private void ensureItemCountListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
if (!((bitField0_ & 0x00000002) != 0)) {
|
||||
itemCountList_ = mutableCopy(itemCountList_);
|
||||
bitField0_ |= 0x00000001;
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
}
|
||||
/**
|
||||
@@ -678,7 +763,7 @@ public final class DestroyMaterialRspOuterClass {
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getItemCountListList() {
|
||||
return ((bitField0_ & 0x00000001) != 0) ?
|
||||
return ((bitField0_ & 0x00000002) != 0) ?
|
||||
java.util.Collections.unmodifiableList(itemCountList_) : itemCountList_;
|
||||
}
|
||||
/**
|
||||
@@ -739,85 +824,6 @@ public final class DestroyMaterialRspOuterClass {
|
||||
*/
|
||||
public Builder clearItemCountList() {
|
||||
itemCountList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList itemIdList_ = emptyIntList();
|
||||
private void ensureItemIdListIsMutable() {
|
||||
if (!((bitField0_ & 0x00000002) != 0)) {
|
||||
itemIdList_ = mutableCopy(itemIdList_);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return A list containing the itemIdList.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getItemIdListList() {
|
||||
return ((bitField0_ & 0x00000002) != 0) ?
|
||||
java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return The count of itemIdList.
|
||||
*/
|
||||
public int getItemIdListCount() {
|
||||
return itemIdList_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The itemIdList at the given index.
|
||||
*/
|
||||
public int getItemIdList(int index) {
|
||||
return itemIdList_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The itemIdList to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setItemIdList(
|
||||
int index, int value) {
|
||||
ensureItemIdListIsMutable();
|
||||
itemIdList_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param value The itemIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addItemIdList(int value) {
|
||||
ensureItemIdListIsMutable();
|
||||
itemIdList_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @param values The itemIdList to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllItemIdList(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureItemIdListIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, itemIdList_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated uint32 item_id_list = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearItemIdList() {
|
||||
itemIdList_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -825,7 +831,7 @@ public final class DestroyMaterialRspOuterClass {
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 11;</code>
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -833,7 +839,7 @@ public final class DestroyMaterialRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 11;</code>
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -844,7 +850,7 @@ public final class DestroyMaterialRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 11;</code>
|
||||
* <code>int32 retcode = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
@@ -921,8 +927,8 @@ public final class DestroyMaterialRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\030DestroyMaterialRsp.proto\"T\n\022DestroyMat" +
|
||||
"erialRsp\022\027\n\017item_count_list\030\014 \003(\r\022\024\n\014ite" +
|
||||
"m_id_list\030\r \003(\r\022\017\n\007retcode\030\013 \001(\005B\033\n\031emu." +
|
||||
"erialRsp\022\024\n\014item_id_list\030\n \003(\r\022\027\n\017item_c" +
|
||||
"ount_list\030\014 \003(\r\022\017\n\007retcode\030\r \001(\005B\033\n\031emu." +
|
||||
"grasscutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -934,7 +940,7 @@ public final class DestroyMaterialRspOuterClass {
|
||||
internal_static_DestroyMaterialRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_DestroyMaterialRsp_descriptor,
|
||||
new java.lang.String[] { "ItemCountList", "ItemIdList", "Retcode", });
|
||||
new java.lang.String[] { "ItemIdList", "ItemCountList", "Retcode", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
|
||||
Reference in New Issue
Block a user