mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-12 06:56:02 +08:00
* Remove hardcoded quest data * Remove deprecated fields * Try to fix packet * Apply fix for token exchange * Upgrade to REL3.7 * Add obfuscated protocol definitions * Add missing enum (other protos too maybe) * Re-add field setters and add note on removal
1478 lines
54 KiB
Java
1478 lines
54 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ItemGivingReq.proto
|
|
|
|
package emu.grasscutter.net.proto;
|
|
|
|
public final class ItemGivingReqOuterClass {
|
|
private ItemGivingReqOuterClass() {}
|
|
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 ItemGivingReqOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:ItemGivingReq)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
int getItemGuidCountMapCount();
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
boolean containsItemGuidCountMap(
|
|
long key);
|
|
/**
|
|
* Use {@link #getItemGuidCountMapMap()} instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
java.util.Map<java.lang.Long, java.lang.Integer>
|
|
getItemGuidCountMap();
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
java.util.Map<java.lang.Long, java.lang.Integer>
|
|
getItemGuidCountMapMap();
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
int getItemGuidCountMapOrDefault(
|
|
long key,
|
|
int defaultValue);
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
int getItemGuidCountMapOrThrow(
|
|
long key);
|
|
|
|
/**
|
|
* <code>uint32 giving_id = 14;</code>
|
|
* @return The givingId.
|
|
*/
|
|
int getGivingId();
|
|
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>
|
|
getItemParamListList();
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index);
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
int getItemParamListCount();
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
getItemParamListOrBuilderList();
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
|
|
int index);
|
|
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The enum numeric value on the wire for itemGivingType.
|
|
*/
|
|
int getItemGivingTypeValue();
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The itemGivingType.
|
|
*/
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType getItemGivingType();
|
|
}
|
|
/**
|
|
* <pre>
|
|
* CmdId: 197
|
|
* Obf: DFPNDCEELAF
|
|
* </pre>
|
|
*
|
|
* Protobuf type {@code ItemGivingReq}
|
|
*/
|
|
public static final class ItemGivingReq extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:ItemGivingReq)
|
|
ItemGivingReqOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use ItemGivingReq.newBuilder() to construct.
|
|
private ItemGivingReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private ItemGivingReq() {
|
|
itemParamList_ = java.util.Collections.emptyList();
|
|
itemGivingType_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
@SuppressWarnings({"unused"})
|
|
protected java.lang.Object newInstance(
|
|
UnusedPrivateParameter unused) {
|
|
return new ItemGivingReq();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private ItemGivingReq(
|
|
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 16: {
|
|
int rawValue = input.readEnum();
|
|
|
|
itemGivingType_ = rawValue;
|
|
break;
|
|
}
|
|
case 50: {
|
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
itemGuidCountMap_ = com.google.protobuf.MapField.newMapField(
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry);
|
|
mutable_bitField0_ |= 0x00000001;
|
|
}
|
|
com.google.protobuf.MapEntry<java.lang.Long, java.lang.Integer>
|
|
itemGuidCountMap__ = input.readMessage(
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
|
itemGuidCountMap_.getMutableMap().put(
|
|
itemGuidCountMap__.getKey(), itemGuidCountMap__.getValue());
|
|
break;
|
|
}
|
|
case 66: {
|
|
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
|
itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>();
|
|
mutable_bitField0_ |= 0x00000002;
|
|
}
|
|
itemParamList_.add(
|
|
input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
|
|
break;
|
|
}
|
|
case 112: {
|
|
|
|
givingId_ = input.readUInt32();
|
|
break;
|
|
}
|
|
default: {
|
|
if (!parseUnknownField(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e).setUnfinishedMessage(this);
|
|
} finally {
|
|
if (((mutable_bitField0_ & 0x00000002) != 0)) {
|
|
itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_);
|
|
}
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor;
|
|
}
|
|
|
|
@SuppressWarnings({"rawtypes"})
|
|
@java.lang.Override
|
|
protected com.google.protobuf.MapField internalGetMapField(
|
|
int number) {
|
|
switch (number) {
|
|
case 6:
|
|
return internalGetItemGuidCountMap();
|
|
default:
|
|
throw new RuntimeException(
|
|
"Invalid map field number: " + number);
|
|
}
|
|
}
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.class, emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.Builder.class);
|
|
}
|
|
|
|
/**
|
|
* <pre>
|
|
* Obf: MAEJHBECLNL
|
|
* </pre>
|
|
*
|
|
* Protobuf enum {@code ItemGivingReq.ItemGivingType}
|
|
*/
|
|
public enum ItemGivingType
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <code>QUEST = 0;</code>
|
|
*/
|
|
QUEST(0),
|
|
/**
|
|
* <code>GADGET = 1;</code>
|
|
*/
|
|
GADGET(1),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <code>QUEST = 0;</code>
|
|
*/
|
|
public static final int QUEST_VALUE = 0;
|
|
/**
|
|
* <code>GADGET = 1;</code>
|
|
*/
|
|
public static final int GADGET_VALUE = 1;
|
|
|
|
|
|
public final int getNumber() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"Can't get the number of an unknown enum value.");
|
|
}
|
|
return value;
|
|
}
|
|
|
|
/**
|
|
* @param value The numeric wire value of the corresponding enum entry.
|
|
* @return The enum associated with the given numeric wire value.
|
|
* @deprecated Use {@link #forNumber(int)} instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
public static ItemGivingType 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 ItemGivingType forNumber(int value) {
|
|
switch (value) {
|
|
case 0: return QUEST;
|
|
case 1: return GADGET;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<ItemGivingType>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
ItemGivingType> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<ItemGivingType>() {
|
|
public ItemGivingType findValueByNumber(int number) {
|
|
return ItemGivingType.forNumber(number);
|
|
}
|
|
};
|
|
|
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
|
getValueDescriptor() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalStateException(
|
|
"Can't get the descriptor of an unrecognized enum value.");
|
|
}
|
|
return getDescriptor().getValues().get(ordinal());
|
|
}
|
|
public final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptorForType() {
|
|
return getDescriptor();
|
|
}
|
|
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.getDescriptor().getEnumTypes().get(0);
|
|
}
|
|
|
|
private static final ItemGivingType[] VALUES = values();
|
|
|
|
public static ItemGivingType valueOf(
|
|
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
|
if (desc.getType() != getDescriptor()) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"EnumValueDescriptor is not for this type.");
|
|
}
|
|
if (desc.getIndex() == -1) {
|
|
return UNRECOGNIZED;
|
|
}
|
|
return VALUES[desc.getIndex()];
|
|
}
|
|
|
|
private final int value;
|
|
|
|
private ItemGivingType(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:ItemGivingReq.ItemGivingType)
|
|
}
|
|
|
|
public static final int ITEM_GUID_COUNT_MAP_FIELD_NUMBER = 6;
|
|
private static final class ItemGuidCountMapDefaultEntryHolder {
|
|
static final com.google.protobuf.MapEntry<
|
|
java.lang.Long, java.lang.Integer> defaultEntry =
|
|
com.google.protobuf.MapEntry
|
|
.<java.lang.Long, java.lang.Integer>newDefaultInstance(
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor,
|
|
com.google.protobuf.WireFormat.FieldType.UINT64,
|
|
0L,
|
|
com.google.protobuf.WireFormat.FieldType.UINT32,
|
|
0);
|
|
}
|
|
private com.google.protobuf.MapField<
|
|
java.lang.Long, java.lang.Integer> itemGuidCountMap_;
|
|
private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer>
|
|
internalGetItemGuidCountMap() {
|
|
if (itemGuidCountMap_ == null) {
|
|
return com.google.protobuf.MapField.emptyMapField(
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry);
|
|
}
|
|
return itemGuidCountMap_;
|
|
}
|
|
|
|
public int getItemGuidCountMapCount() {
|
|
return internalGetItemGuidCountMap().getMap().size();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
@java.lang.Override
|
|
public boolean containsItemGuidCountMap(
|
|
long key) {
|
|
|
|
return internalGetItemGuidCountMap().getMap().containsKey(key);
|
|
}
|
|
/**
|
|
* Use {@link #getItemGuidCountMapMap()} instead.
|
|
*/
|
|
@java.lang.Override
|
|
@java.lang.Deprecated
|
|
public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMap() {
|
|
return getItemGuidCountMapMap();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMapMap() {
|
|
return internalGetItemGuidCountMap().getMap();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public int getItemGuidCountMapOrDefault(
|
|
long key,
|
|
int defaultValue) {
|
|
|
|
java.util.Map<java.lang.Long, java.lang.Integer> map =
|
|
internalGetItemGuidCountMap().getMap();
|
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public int getItemGuidCountMapOrThrow(
|
|
long key) {
|
|
|
|
java.util.Map<java.lang.Long, java.lang.Integer> map =
|
|
internalGetItemGuidCountMap().getMap();
|
|
if (!map.containsKey(key)) {
|
|
throw new java.lang.IllegalArgumentException();
|
|
}
|
|
return map.get(key);
|
|
}
|
|
|
|
public static final int GIVING_ID_FIELD_NUMBER = 14;
|
|
private int givingId_;
|
|
/**
|
|
* <code>uint32 giving_id = 14;</code>
|
|
* @return The givingId.
|
|
*/
|
|
@java.lang.Override
|
|
public int getGivingId() {
|
|
return givingId_;
|
|
}
|
|
|
|
public static final int ITEM_PARAM_LIST_FIELD_NUMBER = 8;
|
|
private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_;
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() {
|
|
return itemParamList_;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
getItemParamListOrBuilderList() {
|
|
return itemParamList_;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public int getItemParamListCount() {
|
|
return itemParamList_.size();
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) {
|
|
return itemParamList_.get(index);
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
|
|
int index) {
|
|
return itemParamList_.get(index);
|
|
}
|
|
|
|
public static final int ITEM_GIVING_TYPE_FIELD_NUMBER = 2;
|
|
private int itemGivingType_;
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The enum numeric value on the wire for itemGivingType.
|
|
*/
|
|
@java.lang.Override public int getItemGivingTypeValue() {
|
|
return itemGivingType_;
|
|
}
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The itemGivingType.
|
|
*/
|
|
@java.lang.Override public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType getItemGivingType() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType result = emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.valueOf(itemGivingType_);
|
|
return result == null ? emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.UNRECOGNIZED : result;
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
@java.lang.Override
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (itemGivingType_ != emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.QUEST.getNumber()) {
|
|
output.writeEnum(2, itemGivingType_);
|
|
}
|
|
com.google.protobuf.GeneratedMessageV3
|
|
.serializeLongMapTo(
|
|
output,
|
|
internalGetItemGuidCountMap(),
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry,
|
|
6);
|
|
for (int i = 0; i < itemParamList_.size(); i++) {
|
|
output.writeMessage(8, itemParamList_.get(i));
|
|
}
|
|
if (givingId_ != 0) {
|
|
output.writeUInt32(14, givingId_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (itemGivingType_ != emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.QUEST.getNumber()) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeEnumSize(2, itemGivingType_);
|
|
}
|
|
for (java.util.Map.Entry<java.lang.Long, java.lang.Integer> entry
|
|
: internalGetItemGuidCountMap().getMap().entrySet()) {
|
|
com.google.protobuf.MapEntry<java.lang.Long, java.lang.Integer>
|
|
itemGuidCountMap__ = ItemGuidCountMapDefaultEntryHolder.defaultEntry.newBuilderForType()
|
|
.setKey(entry.getKey())
|
|
.setValue(entry.getValue())
|
|
.build();
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(6, itemGuidCountMap__);
|
|
}
|
|
for (int i = 0; i < itemParamList_.size(); i++) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(8, itemParamList_.get(i));
|
|
}
|
|
if (givingId_ != 0) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeUInt32Size(14, givingId_);
|
|
}
|
|
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.ItemGivingReqOuterClass.ItemGivingReq)) {
|
|
return super.equals(obj);
|
|
}
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq other = (emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) obj;
|
|
|
|
if (!internalGetItemGuidCountMap().equals(
|
|
other.internalGetItemGuidCountMap())) return false;
|
|
if (getGivingId()
|
|
!= other.getGivingId()) return false;
|
|
if (!getItemParamListList()
|
|
.equals(other.getItemParamListList())) return false;
|
|
if (itemGivingType_ != other.itemGivingType_) 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 (!internalGetItemGuidCountMap().getMap().isEmpty()) {
|
|
hash = (37 * hash) + ITEM_GUID_COUNT_MAP_FIELD_NUMBER;
|
|
hash = (53 * hash) + internalGetItemGuidCountMap().hashCode();
|
|
}
|
|
hash = (37 * hash) + GIVING_ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGivingId();
|
|
if (getItemParamListCount() > 0) {
|
|
hash = (37 * hash) + ITEM_PARAM_LIST_FIELD_NUMBER;
|
|
hash = (53 * hash) + getItemParamListList().hashCode();
|
|
}
|
|
hash = (37 * hash) + ITEM_GIVING_TYPE_FIELD_NUMBER;
|
|
hash = (53 * hash) + itemGivingType_;
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq 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.ItemGivingReqOuterClass.ItemGivingReq parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq 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.ItemGivingReqOuterClass.ItemGivingReq parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq 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.ItemGivingReqOuterClass.ItemGivingReq parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq 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.ItemGivingReqOuterClass.ItemGivingReq parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq 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.ItemGivingReqOuterClass.ItemGivingReq prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
@java.lang.Override
|
|
public Builder toBuilder() {
|
|
return this == DEFAULT_INSTANCE
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected Builder newBuilderForType(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
Builder builder = new Builder(parent);
|
|
return builder;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* CmdId: 197
|
|
* Obf: DFPNDCEELAF
|
|
* </pre>
|
|
*
|
|
* Protobuf type {@code ItemGivingReq}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:ItemGivingReq)
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReqOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor;
|
|
}
|
|
|
|
@SuppressWarnings({"rawtypes"})
|
|
protected com.google.protobuf.MapField internalGetMapField(
|
|
int number) {
|
|
switch (number) {
|
|
case 6:
|
|
return internalGetItemGuidCountMap();
|
|
default:
|
|
throw new RuntimeException(
|
|
"Invalid map field number: " + number);
|
|
}
|
|
}
|
|
@SuppressWarnings({"rawtypes"})
|
|
protected com.google.protobuf.MapField internalGetMutableMapField(
|
|
int number) {
|
|
switch (number) {
|
|
case 6:
|
|
return internalGetMutableItemGuidCountMap();
|
|
default:
|
|
throw new RuntimeException(
|
|
"Invalid map field number: " + number);
|
|
}
|
|
}
|
|
@java.lang.Override
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.class, emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.Builder.class);
|
|
}
|
|
|
|
// Construct using emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
getItemParamListFieldBuilder();
|
|
}
|
|
}
|
|
@java.lang.Override
|
|
public Builder clear() {
|
|
super.clear();
|
|
internalGetMutableItemGuidCountMap().clear();
|
|
givingId_ = 0;
|
|
|
|
if (itemParamListBuilder_ == null) {
|
|
itemParamList_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
} else {
|
|
itemParamListBuilder_.clear();
|
|
}
|
|
itemGivingType_ = 0;
|
|
|
|
return this;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.internal_static_ItemGivingReq_descriptor;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstanceForType() {
|
|
return emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.getDefaultInstance();
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq build() {
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq buildPartial() {
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq result = new emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq(this);
|
|
int from_bitField0_ = bitField0_;
|
|
result.itemGuidCountMap_ = internalGetItemGuidCountMap();
|
|
result.itemGuidCountMap_.makeImmutable();
|
|
result.givingId_ = givingId_;
|
|
if (itemParamListBuilder_ == null) {
|
|
if (((bitField0_ & 0x00000002) != 0)) {
|
|
itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_);
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
}
|
|
result.itemParamList_ = itemParamList_;
|
|
} else {
|
|
result.itemParamList_ = itemParamListBuilder_.build();
|
|
}
|
|
result.itemGivingType_ = itemGivingType_;
|
|
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.ItemGivingReqOuterClass.ItemGivingReq) {
|
|
return mergeFrom((emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq other) {
|
|
if (other == emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.getDefaultInstance()) return this;
|
|
internalGetMutableItemGuidCountMap().mergeFrom(
|
|
other.internalGetItemGuidCountMap());
|
|
if (other.getGivingId() != 0) {
|
|
setGivingId(other.getGivingId());
|
|
}
|
|
if (itemParamListBuilder_ == null) {
|
|
if (!other.itemParamList_.isEmpty()) {
|
|
if (itemParamList_.isEmpty()) {
|
|
itemParamList_ = other.itemParamList_;
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
} else {
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.addAll(other.itemParamList_);
|
|
}
|
|
onChanged();
|
|
}
|
|
} else {
|
|
if (!other.itemParamList_.isEmpty()) {
|
|
if (itemParamListBuilder_.isEmpty()) {
|
|
itemParamListBuilder_.dispose();
|
|
itemParamListBuilder_ = null;
|
|
itemParamList_ = other.itemParamList_;
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
itemParamListBuilder_ =
|
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
getItemParamListFieldBuilder() : null;
|
|
} else {
|
|
itemParamListBuilder_.addAllMessages(other.itemParamList_);
|
|
}
|
|
}
|
|
}
|
|
if (other.itemGivingType_ != 0) {
|
|
setItemGivingTypeValue(other.getItemGivingTypeValue());
|
|
}
|
|
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.ItemGivingReqOuterClass.ItemGivingReq parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
private int bitField0_;
|
|
|
|
private com.google.protobuf.MapField<
|
|
java.lang.Long, java.lang.Integer> itemGuidCountMap_;
|
|
private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer>
|
|
internalGetItemGuidCountMap() {
|
|
if (itemGuidCountMap_ == null) {
|
|
return com.google.protobuf.MapField.emptyMapField(
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry);
|
|
}
|
|
return itemGuidCountMap_;
|
|
}
|
|
private com.google.protobuf.MapField<java.lang.Long, java.lang.Integer>
|
|
internalGetMutableItemGuidCountMap() {
|
|
onChanged();;
|
|
if (itemGuidCountMap_ == null) {
|
|
itemGuidCountMap_ = com.google.protobuf.MapField.newMapField(
|
|
ItemGuidCountMapDefaultEntryHolder.defaultEntry);
|
|
}
|
|
if (!itemGuidCountMap_.isMutable()) {
|
|
itemGuidCountMap_ = itemGuidCountMap_.copy();
|
|
}
|
|
return itemGuidCountMap_;
|
|
}
|
|
|
|
public int getItemGuidCountMapCount() {
|
|
return internalGetItemGuidCountMap().getMap().size();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
@java.lang.Override
|
|
public boolean containsItemGuidCountMap(
|
|
long key) {
|
|
|
|
return internalGetItemGuidCountMap().getMap().containsKey(key);
|
|
}
|
|
/**
|
|
* Use {@link #getItemGuidCountMapMap()} instead.
|
|
*/
|
|
@java.lang.Override
|
|
@java.lang.Deprecated
|
|
public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMap() {
|
|
return getItemGuidCountMapMap();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public java.util.Map<java.lang.Long, java.lang.Integer> getItemGuidCountMapMap() {
|
|
return internalGetItemGuidCountMap().getMap();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public int getItemGuidCountMapOrDefault(
|
|
long key,
|
|
int defaultValue) {
|
|
|
|
java.util.Map<java.lang.Long, java.lang.Integer> map =
|
|
internalGetItemGuidCountMap().getMap();
|
|
return map.containsKey(key) ? map.get(key) : defaultValue;
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
@java.lang.Override
|
|
|
|
public int getItemGuidCountMapOrThrow(
|
|
long key) {
|
|
|
|
java.util.Map<java.lang.Long, java.lang.Integer> map =
|
|
internalGetItemGuidCountMap().getMap();
|
|
if (!map.containsKey(key)) {
|
|
throw new java.lang.IllegalArgumentException();
|
|
}
|
|
return map.get(key);
|
|
}
|
|
|
|
public Builder clearItemGuidCountMap() {
|
|
internalGetMutableItemGuidCountMap().getMutableMap()
|
|
.clear();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
public Builder removeItemGuidCountMap(
|
|
long key) {
|
|
|
|
internalGetMutableItemGuidCountMap().getMutableMap()
|
|
.remove(key);
|
|
return this;
|
|
}
|
|
/**
|
|
* Use alternate mutation accessors instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
public java.util.Map<java.lang.Long, java.lang.Integer>
|
|
getMutableItemGuidCountMap() {
|
|
return internalGetMutableItemGuidCountMap().getMutableMap();
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
public Builder putItemGuidCountMap(
|
|
long key,
|
|
int value) {
|
|
|
|
|
|
internalGetMutableItemGuidCountMap().getMutableMap()
|
|
.put(key, value);
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>map<uint64, uint32> item_guid_count_map = 6;</code>
|
|
*/
|
|
|
|
public Builder putAllItemGuidCountMap(
|
|
java.util.Map<java.lang.Long, java.lang.Integer> values) {
|
|
internalGetMutableItemGuidCountMap().getMutableMap()
|
|
.putAll(values);
|
|
return this;
|
|
}
|
|
|
|
private int givingId_ ;
|
|
/**
|
|
* <code>uint32 giving_id = 14;</code>
|
|
* @return The givingId.
|
|
*/
|
|
@java.lang.Override
|
|
public int getGivingId() {
|
|
return givingId_;
|
|
}
|
|
/**
|
|
* <code>uint32 giving_id = 14;</code>
|
|
* @param value The givingId to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setGivingId(int value) {
|
|
|
|
givingId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>uint32 giving_id = 14;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearGivingId() {
|
|
|
|
givingId_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ =
|
|
java.util.Collections.emptyList();
|
|
private void ensureItemParamListIsMutable() {
|
|
if (!((bitField0_ & 0x00000002) != 0)) {
|
|
itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_);
|
|
bitField0_ |= 0x00000002;
|
|
}
|
|
}
|
|
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemParamListBuilder_;
|
|
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() {
|
|
if (itemParamListBuilder_ == null) {
|
|
return java.util.Collections.unmodifiableList(itemParamList_);
|
|
} else {
|
|
return itemParamListBuilder_.getMessageList();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public int getItemParamListCount() {
|
|
if (itemParamListBuilder_ == null) {
|
|
return itemParamList_.size();
|
|
} else {
|
|
return itemParamListBuilder_.getCount();
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) {
|
|
if (itemParamListBuilder_ == null) {
|
|
return itemParamList_.get(index);
|
|
} else {
|
|
return itemParamListBuilder_.getMessage(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder setItemParamList(
|
|
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
if (itemParamListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.set(index, value);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.setMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder setItemParamList(
|
|
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
if (itemParamListBuilder_ == null) {
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.set(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.setMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
if (itemParamListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.add(value);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.addMessage(value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder addItemParamList(
|
|
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
if (itemParamListBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.add(index, value);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.addMessage(index, value);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder addItemParamList(
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
if (itemParamListBuilder_ == null) {
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.add(builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.addMessage(builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder addItemParamList(
|
|
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
if (itemParamListBuilder_ == null) {
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.add(index, builderForValue.build());
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.addMessage(index, builderForValue.build());
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder addAllItemParamList(
|
|
java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
|
|
if (itemParamListBuilder_ == null) {
|
|
ensureItemParamListIsMutable();
|
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
values, itemParamList_);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.addAllMessages(values);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder clearItemParamList() {
|
|
if (itemParamListBuilder_ == null) {
|
|
itemParamList_ = java.util.Collections.emptyList();
|
|
bitField0_ = (bitField0_ & ~0x00000002);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.clear();
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public Builder removeItemParamList(int index) {
|
|
if (itemParamListBuilder_ == null) {
|
|
ensureItemParamListIsMutable();
|
|
itemParamList_.remove(index);
|
|
onChanged();
|
|
} else {
|
|
itemParamListBuilder_.remove(index);
|
|
}
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder(
|
|
int index) {
|
|
return getItemParamListFieldBuilder().getBuilder(index);
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
|
|
int index) {
|
|
if (itemParamListBuilder_ == null) {
|
|
return itemParamList_.get(index); } else {
|
|
return itemParamListBuilder_.getMessageOrBuilder(index);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
getItemParamListOrBuilderList() {
|
|
if (itemParamListBuilder_ != null) {
|
|
return itemParamListBuilder_.getMessageOrBuilderList();
|
|
} else {
|
|
return java.util.Collections.unmodifiableList(itemParamList_);
|
|
}
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() {
|
|
return getItemParamListFieldBuilder().addBuilder(
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder(
|
|
int index) {
|
|
return getItemParamListFieldBuilder().addBuilder(
|
|
index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
|
|
}
|
|
/**
|
|
* <code>repeated .ItemParam item_param_list = 8;</code>
|
|
*/
|
|
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder>
|
|
getItemParamListBuilderList() {
|
|
return getItemParamListFieldBuilder().getBuilderList();
|
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
getItemParamListFieldBuilder() {
|
|
if (itemParamListBuilder_ == null) {
|
|
itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
|
|
itemParamList_,
|
|
((bitField0_ & 0x00000002) != 0),
|
|
getParentForChildren(),
|
|
isClean());
|
|
itemParamList_ = null;
|
|
}
|
|
return itemParamListBuilder_;
|
|
}
|
|
|
|
private int itemGivingType_ = 0;
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The enum numeric value on the wire for itemGivingType.
|
|
*/
|
|
@java.lang.Override public int getItemGivingTypeValue() {
|
|
return itemGivingType_;
|
|
}
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @param value The enum numeric value on the wire for itemGivingType to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setItemGivingTypeValue(int value) {
|
|
|
|
itemGivingType_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return The itemGivingType.
|
|
*/
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType getItemGivingType() {
|
|
@SuppressWarnings("deprecation")
|
|
emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType result = emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.valueOf(itemGivingType_);
|
|
return result == null ? emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType.UNRECOGNIZED : result;
|
|
}
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @param value The itemGivingType to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setItemGivingType(emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
itemGivingType_ = value.getNumber();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.ItemGivingReq.ItemGivingType item_giving_type = 2;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearItemGivingType() {
|
|
|
|
itemGivingType_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
@java.lang.Override
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFields(unknownFields);
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:ItemGivingReq)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:ItemGivingReq)
|
|
private static final emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq();
|
|
}
|
|
|
|
public static emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<ItemGivingReq>
|
|
PARSER = new com.google.protobuf.AbstractParser<ItemGivingReq>() {
|
|
@java.lang.Override
|
|
public ItemGivingReq parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new ItemGivingReq(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<ItemGivingReq> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<ItemGivingReq> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_ItemGivingReq_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_ItemGivingReq_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_ItemGivingReq_ItemGuidCountMapEntry_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\023ItemGivingReq.proto\032\017ItemParam.proto\"\245" +
|
|
"\002\n\rItemGivingReq\022A\n\023item_guid_count_map\030" +
|
|
"\006 \003(\0132$.ItemGivingReq.ItemGuidCountMapEn" +
|
|
"try\022\021\n\tgiving_id\030\016 \001(\r\022#\n\017item_param_lis" +
|
|
"t\030\010 \003(\0132\n.ItemParam\0227\n\020item_giving_type\030" +
|
|
"\002 \001(\0162\035.ItemGivingReq.ItemGivingType\0327\n\025" +
|
|
"ItemGuidCountMapEntry\022\013\n\003key\030\001 \001(\004\022\r\n\005va" +
|
|
"lue\030\002 \001(\r:\0028\001\"\'\n\016ItemGivingType\022\t\n\005QUEST" +
|
|
"\020\000\022\n\n\006GADGET\020\001B\033\n\031emu.grasscutter.net.pr" +
|
|
"otob\006proto3"
|
|
};
|
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
|
|
});
|
|
internal_static_ItemGivingReq_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_ItemGivingReq_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_ItemGivingReq_descriptor,
|
|
new java.lang.String[] { "ItemGuidCountMap", "GivingId", "ItemParamList", "ItemGivingType", });
|
|
internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor =
|
|
internal_static_ItemGivingReq_descriptor.getNestedTypes().get(0);
|
|
internal_static_ItemGivingReq_ItemGuidCountMapEntry_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_ItemGivingReq_ItemGuidCountMapEntry_descriptor,
|
|
new java.lang.String[] { "Key", "Value", });
|
|
emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|