Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/GetQuestLackingResourceRspOuterClass.java
yeyeye 71a1e31d37
update gc 3.4 (#2041)
* update 3.4

* update3.4

* update 3.4

* update 3.4

* Add files via upload

* Delete SetPropCommand.java

* update 3.4 area id

* update version

* exchange cmdid

* exchange cmdid

* exchange cmdid

* my fault

* update AiSyncInfo
2023-02-18 22:18:27 -05:00

1766 lines
62 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetQuestLackingResourceRsp.proto
package emu.grasscutter.net.proto;
public final class GetQuestLackingResourceRspOuterClass {
private GetQuestLackingResourceRspOuterClass() {}
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 GetQuestLackingResourceRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetQuestLackingResourceRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
int getLackedNpcMapCount();
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
boolean containsLackedNpcMap(
int key);
/**
* Use {@link #getLackedNpcMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getLackedNpcMap();
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getLackedNpcMapMap();
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
int getLackedNpcMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
int getLackedNpcMapOrThrow(
int key);
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return A list containing the lackedPlaceList.
*/
java.util.List<java.lang.Integer> getLackedPlaceListList();
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return The count of lackedPlaceList.
*/
int getLackedPlaceListCount();
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param index The index of the element to return.
* @return The lackedPlaceList at the given index.
*/
int getLackedPlaceList(int index);
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return A list containing the lackedNpcList.
*/
java.util.List<java.lang.Integer> getLackedNpcListList();
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return The count of lackedNpcList.
*/
int getLackedNpcListCount();
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param index The index of the element to return.
* @return The lackedNpcList at the given index.
*/
int getLackedNpcList(int index);
/**
* <code>uint32 questId = 6;</code>
* @return The questId.
*/
int getQuestId();
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
int getLackedPlaceMapCount();
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
boolean containsLackedPlaceMap(
int key);
/**
* Use {@link #getLackedPlaceMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getLackedPlaceMap();
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getLackedPlaceMapMap();
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
int getLackedPlaceMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
int getLackedPlaceMapOrThrow(
int key);
}
/**
* Protobuf type {@code GetQuestLackingResourceRsp}
*/
public static final class GetQuestLackingResourceRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetQuestLackingResourceRsp)
GetQuestLackingResourceRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetQuestLackingResourceRsp.newBuilder() to construct.
private GetQuestLackingResourceRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GetQuestLackingResourceRsp() {
lackedPlaceList_ = emptyIntList();
lackedNpcList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetQuestLackingResourceRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetQuestLackingResourceRsp(
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_ & 0x00000008) != 0)) {
lackedPlaceMap_ = com.google.protobuf.MapField.newMapField(
LackedPlaceMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
lackedPlaceMap__ = input.readMessage(
LackedPlaceMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
lackedPlaceMap_.getMutableMap().put(
lackedPlaceMap__.getKey(), lackedPlaceMap__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
lackedNpcMap_ = com.google.protobuf.MapField.newMapField(
LackedNpcMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
lackedNpcMap__ = input.readMessage(
LackedNpcMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
lackedNpcMap_.getMutableMap().put(
lackedNpcMap__.getKey(), lackedNpcMap__.getValue());
break;
}
case 48: {
questId_ = input.readUInt32();
break;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
lackedPlaceList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
lackedPlaceList_.addInt(input.readUInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
lackedPlaceList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
lackedPlaceList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 112: {
retcode_ = input.readInt32();
break;
}
case 120: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
lackedNpcList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
lackedNpcList_.addInt(input.readUInt32());
break;
}
case 122: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
lackedNpcList_ = newIntList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
lackedNpcList_.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_ & 0x00000002) != 0)) {
lackedPlaceList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
lackedNpcList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetLackedNpcMap();
case 1:
return internalGetLackedPlaceMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.class, emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.Builder.class);
}
/**
* Protobuf enum {@code GetQuestLackingResourceRsp.JEEJAIAHPOD}
*/
public enum JEEJAIAHPOD
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NONE = 0;</code>
*/
NONE(0, 0),
/**
* <code>PEPPOHPHJOJ = 483;</code>
*/
PEPPOHPHJOJ(1, 483),
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
NNBKOLMPOEA(3, 1),
UNRECOGNIZED(-1, -1),
;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final JEEJAIAHPOD DCDNILFDFLB = NONE;
/**
* <code>NONE = 0;</code>
*/
public static final int NONE_VALUE = 0;
/**
* <code>PEPPOHPHJOJ = 483;</code>
*/
public static final int PEPPOHPHJOJ_VALUE = 483;
/**
* <code>DCDNILFDFLB = 0;</code>
*/
public static final int DCDNILFDFLB_VALUE = 0;
/**
* <code>NNBKOLMPOEA = 1;</code>
*/
public static final int NNBKOLMPOEA_VALUE = 1;
public final int getNumber() {
if (index == -1) {
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 JEEJAIAHPOD 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 JEEJAIAHPOD forNumber(int value) {
switch (value) {
case 0: return NONE;
case 483: return PEPPOHPHJOJ;
case 1: return NNBKOLMPOEA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<JEEJAIAHPOD>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
JEEJAIAHPOD> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<JEEJAIAHPOD>() {
public JEEJAIAHPOD findValueByNumber(int number) {
return JEEJAIAHPOD.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (index == -1) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.getDescriptor().getEnumTypes().get(0);
}
private static final JEEJAIAHPOD[] VALUES = getStaticValuesArray();
private static JEEJAIAHPOD[] getStaticValuesArray() {
return new JEEJAIAHPOD[] {
NONE, PEPPOHPHJOJ, DCDNILFDFLB, NNBKOLMPOEA,
};
}
public static JEEJAIAHPOD 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 index;
private final int value;
private JEEJAIAHPOD(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GetQuestLackingResourceRsp.JEEJAIAHPOD)
}
public static final int LACKEDNPCMAP_FIELD_NUMBER = 3;
private static final class LackedNpcMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> lackedNpcMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetLackedNpcMap() {
if (lackedNpcMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LackedNpcMapDefaultEntryHolder.defaultEntry);
}
return lackedNpcMap_;
}
public int getLackedNpcMapCount() {
return internalGetLackedNpcMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public boolean containsLackedNpcMap(
int key) {
return internalGetLackedNpcMap().getMap().containsKey(key);
}
/**
* Use {@link #getLackedNpcMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedNpcMap() {
return getLackedNpcMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedNpcMapMap() {
return internalGetLackedNpcMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public int getLackedNpcMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedNpcMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public int getLackedNpcMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedNpcMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RETCODE_FIELD_NUMBER = 14;
private int retcode_;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int LACKEDPLACELIST_FIELD_NUMBER = 9;
private com.google.protobuf.Internal.IntList lackedPlaceList_;
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return A list containing the lackedPlaceList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getLackedPlaceListList() {
return lackedPlaceList_;
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return The count of lackedPlaceList.
*/
public int getLackedPlaceListCount() {
return lackedPlaceList_.size();
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param index The index of the element to return.
* @return The lackedPlaceList at the given index.
*/
public int getLackedPlaceList(int index) {
return lackedPlaceList_.getInt(index);
}
private int lackedPlaceListMemoizedSerializedSize = -1;
public static final int LACKEDNPCLIST_FIELD_NUMBER = 15;
private com.google.protobuf.Internal.IntList lackedNpcList_;
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return A list containing the lackedNpcList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getLackedNpcListList() {
return lackedNpcList_;
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return The count of lackedNpcList.
*/
public int getLackedNpcListCount() {
return lackedNpcList_.size();
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param index The index of the element to return.
* @return The lackedNpcList at the given index.
*/
public int getLackedNpcList(int index) {
return lackedNpcList_.getInt(index);
}
private int lackedNpcListMemoizedSerializedSize = -1;
public static final int QUESTID_FIELD_NUMBER = 6;
private int questId_;
/**
* <code>uint32 questId = 6;</code>
* @return The questId.
*/
@java.lang.Override
public int getQuestId() {
return questId_;
}
public static final int LACKEDPLACEMAP_FIELD_NUMBER = 1;
private static final class LackedPlaceMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> lackedPlaceMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetLackedPlaceMap() {
if (lackedPlaceMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LackedPlaceMapDefaultEntryHolder.defaultEntry);
}
return lackedPlaceMap_;
}
public int getLackedPlaceMapCount() {
return internalGetLackedPlaceMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public boolean containsLackedPlaceMap(
int key) {
return internalGetLackedPlaceMap().getMap().containsKey(key);
}
/**
* Use {@link #getLackedPlaceMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedPlaceMap() {
return getLackedPlaceMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedPlaceMapMap() {
return internalGetLackedPlaceMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public int getLackedPlaceMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedPlaceMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public int getLackedPlaceMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedPlaceMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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();
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetLackedPlaceMap(),
LackedPlaceMapDefaultEntryHolder.defaultEntry,
1);
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetLackedNpcMap(),
LackedNpcMapDefaultEntryHolder.defaultEntry,
3);
if (questId_ != 0) {
output.writeUInt32(6, questId_);
}
if (getLackedPlaceListList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(lackedPlaceListMemoizedSerializedSize);
}
for (int i = 0; i < lackedPlaceList_.size(); i++) {
output.writeUInt32NoTag(lackedPlaceList_.getInt(i));
}
if (retcode_ != 0) {
output.writeInt32(14, retcode_);
}
if (getLackedNpcListList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(lackedNpcListMemoizedSerializedSize);
}
for (int i = 0; i < lackedNpcList_.size(); i++) {
output.writeUInt32NoTag(lackedNpcList_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetLackedPlaceMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
lackedPlaceMap__ = LackedPlaceMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, lackedPlaceMap__);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetLackedNpcMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
lackedNpcMap__ = LackedNpcMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, lackedNpcMap__);
}
if (questId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, questId_);
}
{
int dataSize = 0;
for (int i = 0; i < lackedPlaceList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(lackedPlaceList_.getInt(i));
}
size += dataSize;
if (!getLackedPlaceListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
lackedPlaceListMemoizedSerializedSize = dataSize;
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, retcode_);
}
{
int dataSize = 0;
for (int i = 0; i < lackedNpcList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(lackedNpcList_.getInt(i));
}
size += dataSize;
if (!getLackedNpcListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
lackedNpcListMemoizedSerializedSize = 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp other = (emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp) obj;
if (!internalGetLackedNpcMap().equals(
other.internalGetLackedNpcMap())) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (!getLackedPlaceListList()
.equals(other.getLackedPlaceListList())) return false;
if (!getLackedNpcListList()
.equals(other.getLackedNpcListList())) return false;
if (getQuestId()
!= other.getQuestId()) return false;
if (!internalGetLackedPlaceMap().equals(
other.internalGetLackedPlaceMap())) 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 (!internalGetLackedNpcMap().getMap().isEmpty()) {
hash = (37 * hash) + LACKEDNPCMAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetLackedNpcMap().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
if (getLackedPlaceListCount() > 0) {
hash = (37 * hash) + LACKEDPLACELIST_FIELD_NUMBER;
hash = (53 * hash) + getLackedPlaceListList().hashCode();
}
if (getLackedNpcListCount() > 0) {
hash = (37 * hash) + LACKEDNPCLIST_FIELD_NUMBER;
hash = (53 * hash) + getLackedNpcListList().hashCode();
}
hash = (37 * hash) + QUESTID_FIELD_NUMBER;
hash = (53 * hash) + getQuestId();
if (!internalGetLackedPlaceMap().getMap().isEmpty()) {
hash = (37 * hash) + LACKEDPLACEMAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetLackedPlaceMap().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp 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 GetQuestLackingResourceRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GetQuestLackingResourceRsp)
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetLackedNpcMap();
case 1:
return internalGetLackedPlaceMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableLackedNpcMap();
case 1:
return internalGetMutableLackedPlaceMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.class, emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.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();
internalGetMutableLackedNpcMap().clear();
retcode_ = 0;
lackedPlaceList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
lackedNpcList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
questId_ = 0;
internalGetMutableLackedPlaceMap().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.internal_static_GetQuestLackingResourceRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp build() {
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp buildPartial() {
emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp result = new emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp(this);
int from_bitField0_ = bitField0_;
result.lackedNpcMap_ = internalGetLackedNpcMap();
result.lackedNpcMap_.makeImmutable();
result.retcode_ = retcode_;
if (((bitField0_ & 0x00000002) != 0)) {
lackedPlaceList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.lackedPlaceList_ = lackedPlaceList_;
if (((bitField0_ & 0x00000004) != 0)) {
lackedNpcList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.lackedNpcList_ = lackedNpcList_;
result.questId_ = questId_;
result.lackedPlaceMap_ = internalGetLackedPlaceMap();
result.lackedPlaceMap_.makeImmutable();
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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp) {
return mergeFrom((emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp other) {
if (other == emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp.getDefaultInstance()) return this;
internalGetMutableLackedNpcMap().mergeFrom(
other.internalGetLackedNpcMap());
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (!other.lackedPlaceList_.isEmpty()) {
if (lackedPlaceList_.isEmpty()) {
lackedPlaceList_ = other.lackedPlaceList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLackedPlaceListIsMutable();
lackedPlaceList_.addAll(other.lackedPlaceList_);
}
onChanged();
}
if (!other.lackedNpcList_.isEmpty()) {
if (lackedNpcList_.isEmpty()) {
lackedNpcList_ = other.lackedNpcList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureLackedNpcListIsMutable();
lackedNpcList_.addAll(other.lackedNpcList_);
}
onChanged();
}
if (other.getQuestId() != 0) {
setQuestId(other.getQuestId());
}
internalGetMutableLackedPlaceMap().mergeFrom(
other.internalGetLackedPlaceMap());
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.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> lackedNpcMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetLackedNpcMap() {
if (lackedNpcMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LackedNpcMapDefaultEntryHolder.defaultEntry);
}
return lackedNpcMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableLackedNpcMap() {
onChanged();;
if (lackedNpcMap_ == null) {
lackedNpcMap_ = com.google.protobuf.MapField.newMapField(
LackedNpcMapDefaultEntryHolder.defaultEntry);
}
if (!lackedNpcMap_.isMutable()) {
lackedNpcMap_ = lackedNpcMap_.copy();
}
return lackedNpcMap_;
}
public int getLackedNpcMapCount() {
return internalGetLackedNpcMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public boolean containsLackedNpcMap(
int key) {
return internalGetLackedNpcMap().getMap().containsKey(key);
}
/**
* Use {@link #getLackedNpcMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedNpcMap() {
return getLackedNpcMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedNpcMapMap() {
return internalGetLackedNpcMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public int getLackedNpcMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedNpcMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
@java.lang.Override
public int getLackedNpcMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedNpcMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLackedNpcMap() {
internalGetMutableLackedNpcMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
public Builder removeLackedNpcMap(
int key) {
internalGetMutableLackedNpcMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableLackedNpcMap() {
return internalGetMutableLackedNpcMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
public Builder putLackedNpcMap(
int key,
int value) {
internalGetMutableLackedNpcMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedNpcMap = 3;</code>
*/
public Builder putAllLackedNpcMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableLackedNpcMap().getMutableMap()
.putAll(values);
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 14;</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 = 14;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList lackedPlaceList_ = emptyIntList();
private void ensureLackedPlaceListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
lackedPlaceList_ = mutableCopy(lackedPlaceList_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return A list containing the lackedPlaceList.
*/
public java.util.List<java.lang.Integer>
getLackedPlaceListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(lackedPlaceList_) : lackedPlaceList_;
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return The count of lackedPlaceList.
*/
public int getLackedPlaceListCount() {
return lackedPlaceList_.size();
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param index The index of the element to return.
* @return The lackedPlaceList at the given index.
*/
public int getLackedPlaceList(int index) {
return lackedPlaceList_.getInt(index);
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param index The index to set the value at.
* @param value The lackedPlaceList to set.
* @return This builder for chaining.
*/
public Builder setLackedPlaceList(
int index, int value) {
ensureLackedPlaceListIsMutable();
lackedPlaceList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param value The lackedPlaceList to add.
* @return This builder for chaining.
*/
public Builder addLackedPlaceList(int value) {
ensureLackedPlaceListIsMutable();
lackedPlaceList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @param values The lackedPlaceList to add.
* @return This builder for chaining.
*/
public Builder addAllLackedPlaceList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureLackedPlaceListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lackedPlaceList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedPlaceList = 9;</code>
* @return This builder for chaining.
*/
public Builder clearLackedPlaceList() {
lackedPlaceList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList lackedNpcList_ = emptyIntList();
private void ensureLackedNpcListIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
lackedNpcList_ = mutableCopy(lackedNpcList_);
bitField0_ |= 0x00000004;
}
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return A list containing the lackedNpcList.
*/
public java.util.List<java.lang.Integer>
getLackedNpcListList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(lackedNpcList_) : lackedNpcList_;
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return The count of lackedNpcList.
*/
public int getLackedNpcListCount() {
return lackedNpcList_.size();
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param index The index of the element to return.
* @return The lackedNpcList at the given index.
*/
public int getLackedNpcList(int index) {
return lackedNpcList_.getInt(index);
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param index The index to set the value at.
* @param value The lackedNpcList to set.
* @return This builder for chaining.
*/
public Builder setLackedNpcList(
int index, int value) {
ensureLackedNpcListIsMutable();
lackedNpcList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param value The lackedNpcList to add.
* @return This builder for chaining.
*/
public Builder addLackedNpcList(int value) {
ensureLackedNpcListIsMutable();
lackedNpcList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @param values The lackedNpcList to add.
* @return This builder for chaining.
*/
public Builder addAllLackedNpcList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureLackedNpcListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lackedNpcList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 lackedNpcList = 15;</code>
* @return This builder for chaining.
*/
public Builder clearLackedNpcList() {
lackedNpcList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private int questId_ ;
/**
* <code>uint32 questId = 6;</code>
* @return The questId.
*/
@java.lang.Override
public int getQuestId() {
return questId_;
}
/**
* <code>uint32 questId = 6;</code>
* @param value The questId to set.
* @return This builder for chaining.
*/
public Builder setQuestId(int value) {
questId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 questId = 6;</code>
* @return This builder for chaining.
*/
public Builder clearQuestId() {
questId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> lackedPlaceMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetLackedPlaceMap() {
if (lackedPlaceMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LackedPlaceMapDefaultEntryHolder.defaultEntry);
}
return lackedPlaceMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableLackedPlaceMap() {
onChanged();;
if (lackedPlaceMap_ == null) {
lackedPlaceMap_ = com.google.protobuf.MapField.newMapField(
LackedPlaceMapDefaultEntryHolder.defaultEntry);
}
if (!lackedPlaceMap_.isMutable()) {
lackedPlaceMap_ = lackedPlaceMap_.copy();
}
return lackedPlaceMap_;
}
public int getLackedPlaceMapCount() {
return internalGetLackedPlaceMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public boolean containsLackedPlaceMap(
int key) {
return internalGetLackedPlaceMap().getMap().containsKey(key);
}
/**
* Use {@link #getLackedPlaceMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedPlaceMap() {
return getLackedPlaceMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getLackedPlaceMapMap() {
return internalGetLackedPlaceMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public int getLackedPlaceMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedPlaceMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
@java.lang.Override
public int getLackedPlaceMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetLackedPlaceMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLackedPlaceMap() {
internalGetMutableLackedPlaceMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
public Builder removeLackedPlaceMap(
int key) {
internalGetMutableLackedPlaceMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableLackedPlaceMap() {
return internalGetMutableLackedPlaceMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
public Builder putLackedPlaceMap(
int key,
int value) {
internalGetMutableLackedPlaceMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; lackedPlaceMap = 1;</code>
*/
public Builder putAllLackedPlaceMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableLackedPlaceMap().getMutableMap()
.putAll(values);
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:GetQuestLackingResourceRsp)
}
// @@protoc_insertion_point(class_scope:GetQuestLackingResourceRsp)
private static final emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp();
}
public static emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GetQuestLackingResourceRsp>
PARSER = new com.google.protobuf.AbstractParser<GetQuestLackingResourceRsp>() {
@java.lang.Override
public GetQuestLackingResourceRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetQuestLackingResourceRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<GetQuestLackingResourceRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GetQuestLackingResourceRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetQuestLackingResourceRspOuterClass.GetQuestLackingResourceRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetQuestLackingResourceRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetQuestLackingResourceRsp_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_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 GetQuestLackingResourceRsp.proto\"\271\003\n\032G" +
"etQuestLackingResourceRsp\022C\n\014lackedNpcMa" +
"p\030\003 \003(\0132-.GetQuestLackingResourceRsp.Lac" +
"kedNpcMapEntry\022\017\n\007retcode\030\016 \001(\005\022\027\n\017lacke" +
"dPlaceList\030\t \003(\r\022\025\n\rlackedNpcList\030\017 \003(\r\022" +
"\017\n\007questId\030\006 \001(\r\022G\n\016lackedPlaceMap\030\001 \003(\013" +
"2/.GetQuestLackingResourceRsp.LackedPlac" +
"eMapEntry\0323\n\021LackedNpcMapEntry\022\013\n\003key\030\001 " +
"\001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\0325\n\023LackedPlaceMap" +
"Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\"O\n" +
"\013JEEJAIAHPOD\022\010\n\004NONE\020\000\022\020\n\013PEPPOHPHJOJ\020\343\003" +
"\022\017\n\013DCDNILFDFLB\020\000\022\017\n\013NNBKOLMPOEA\020\001\032\002\020\001B\033" +
"\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_GetQuestLackingResourceRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GetQuestLackingResourceRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetQuestLackingResourceRsp_descriptor,
new java.lang.String[] { "LackedNpcMap", "Retcode", "LackedPlaceList", "LackedNpcList", "QuestId", "LackedPlaceMap", });
internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_descriptor =
internal_static_GetQuestLackingResourceRsp_descriptor.getNestedTypes().get(0);
internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetQuestLackingResourceRsp_LackedNpcMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_descriptor =
internal_static_GetQuestLackingResourceRsp_descriptor.getNestedTypes().get(1);
internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetQuestLackingResourceRsp_LackedPlaceMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}