All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.net.proto.ItemGivingReqOuterClass Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
// 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 {

    /**
     * uint32 giving_id = 12;
     * @return The givingId.
     */
    int getGivingId();

    /**
     * repeated .ItemParam item_param_list = 15;
     */
    java.util.List 
        getItemParamListList();
    /**
     * repeated .ItemParam item_param_list = 15;
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index);
    /**
     * repeated .ItemParam item_param_list = 15;
     */
    int getItemParamListCount();
    /**
     * repeated .ItemParam item_param_list = 15;
     */
    java.util.List 
        getItemParamListOrBuilderList();
    /**
     * repeated .ItemParam item_param_list = 15;
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
        int index);

    /**
     * map<uint64, uint32> item_guid_count_map = 13;
     */
    int getItemGuidCountMapCount();
    /**
     * map<uint64, uint32> item_guid_count_map = 13;
     */
    boolean containsItemGuidCountMap(
        long key);
    /**
     * Use {@link #getItemGuidCountMapMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map
    getItemGuidCountMap();
    /**
     * map<uint64, uint32> item_guid_count_map = 13;
     */
    java.util.Map
    getItemGuidCountMapMap();
    /**
     * map<uint64, uint32> item_guid_count_map = 13;
     */

    int getItemGuidCountMapOrDefault(
        long key,
        int defaultValue);
    /**
     * map<uint64, uint32> item_guid_count_map = 13;
     */

    int getItemGuidCountMapOrThrow(
        long key);

    /**
     * .ItemGivingReq.ItemGivingType item_giving_type = 7;
     * @return The enum numeric value on the wire for itemGivingType.
     */
    int getItemGivingTypeValue();
    /**
     * .ItemGivingReq.ItemGivingType item_giving_type = 7;
     * @return The itemGivingType.
     */
    emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq.ItemGivingType getItemGivingType();
  }
  /**
   * 
   * CmdId: 4527
   * Obf: FEKPPCLHGIF
   * 
* * 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 56: { int rawValue = input.readEnum(); itemGivingType_ = rawValue; break; } case 96: { givingId_ = input.readUInt32(); break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { itemGuidCountMap_ = com.google.protobuf.MapField.newMapField( ItemGuidCountMapDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry itemGuidCountMap__ = input.readMessage( ItemGuidCountMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); itemGuidCountMap_.getMutableMap().put( itemGuidCountMap__.getKey(), itemGuidCountMap__.getValue()); break; } case 122: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { itemParamList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } itemParamList_.add( input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { 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 13: 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); } /** *
     * Obf: HGCKAFEMAFE
     * 
* * Protobuf enum {@code ItemGivingReq.ItemGivingType} */ public enum ItemGivingType implements com.google.protobuf.ProtocolMessageEnum { /** * QUEST = 0; */ QUEST(0), /** * GADGET = 1; */ GADGET(1), UNRECOGNIZED(-1), ; /** * QUEST = 0; */ public static final int QUEST_VALUE = 0; /** * GADGET = 1; */ 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 internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ItemGivingType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { 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 GIVING_ID_FIELD_NUMBER = 12; private int givingId_; /** * uint32 giving_id = 12; * @return The givingId. */ @java.lang.Override public int getGivingId() { return givingId_; } public static final int ITEM_PARAM_LIST_FIELD_NUMBER = 15; private java.util.List itemParamList_; /** * repeated .ItemParam item_param_list = 15; */ @java.lang.Override public java.util.List getItemParamListList() { return itemParamList_; } /** * repeated .ItemParam item_param_list = 15; */ @java.lang.Override public java.util.List getItemParamListOrBuilderList() { return itemParamList_; } /** * repeated .ItemParam item_param_list = 15; */ @java.lang.Override public int getItemParamListCount() { return itemParamList_.size(); } /** * repeated .ItemParam item_param_list = 15; */ @java.lang.Override public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { return itemParamList_.get(index); } /** * repeated .ItemParam item_param_list = 15; */ @java.lang.Override public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( int index) { return itemParamList_.get(index); } public static final int ITEM_GUID_COUNT_MAP_FIELD_NUMBER = 13; private static final class ItemGuidCountMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .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 internalGetItemGuidCountMap() { if (itemGuidCountMap_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemGuidCountMapDefaultEntryHolder.defaultEntry); } return itemGuidCountMap_; } public int getItemGuidCountMapCount() { return internalGetItemGuidCountMap().getMap().size(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @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 getItemGuidCountMap() { return getItemGuidCountMapMap(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public java.util.Map getItemGuidCountMapMap() { return internalGetItemGuidCountMap().getMap(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public int getItemGuidCountMapOrDefault( long key, int defaultValue) { java.util.Map map = internalGetItemGuidCountMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public int getItemGuidCountMapOrThrow( long key) { java.util.Map map = internalGetItemGuidCountMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ITEM_GIVING_TYPE_FIELD_NUMBER = 7; private int itemGivingType_; /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @return The enum numeric value on the wire for itemGivingType. */ @java.lang.Override public int getItemGivingTypeValue() { return itemGivingType_; } /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @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(7, itemGivingType_); } if (givingId_ != 0) { output.writeUInt32(12, givingId_); } com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetItemGuidCountMap(), ItemGuidCountMapDefaultEntryHolder.defaultEntry, 13); for (int i = 0; i < itemParamList_.size(); i++) { output.writeMessage(15, itemParamList_.get(i)); } 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(7, itemGivingType_); } if (givingId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, givingId_); } for (java.util.Map.Entry entry : internalGetItemGuidCountMap().getMap().entrySet()) { com.google.protobuf.MapEntry itemGuidCountMap__ = ItemGuidCountMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, itemGuidCountMap__); } for (int i = 0; i < itemParamList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, itemParamList_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq)) { return super.equals(obj); } emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq other = (emu.grasscutter.net.proto.ItemGivingReqOuterClass.ItemGivingReq) obj; if (getGivingId() != other.getGivingId()) return false; if (!getItemParamListList() .equals(other.getItemParamListList())) return false; if (!internalGetItemGuidCountMap().equals( other.internalGetItemGuidCountMap())) 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(); 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(); } if (!internalGetItemGuidCountMap().getMap().isEmpty()) { hash = (37 * hash) + ITEM_GUID_COUNT_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetItemGuidCountMap().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; } /** *
     * CmdId: 4527
     * Obf: FEKPPCLHGIF
     * 
* * Protobuf type {@code ItemGivingReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.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 13: return internalGetItemGuidCountMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 13: 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(); givingId_ = 0; if (itemParamListBuilder_ == null) { itemParamList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { itemParamListBuilder_.clear(); } internalGetMutableItemGuidCountMap().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.givingId_ = givingId_; if (itemParamListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_); bitField0_ = (bitField0_ & ~0x00000001); } result.itemParamList_ = itemParamList_; } else { result.itemParamList_ = itemParamListBuilder_.build(); } result.itemGuidCountMap_ = internalGetItemGuidCountMap(); result.itemGuidCountMap_.makeImmutable(); 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; if (other.getGivingId() != 0) { setGivingId(other.getGivingId()); } if (itemParamListBuilder_ == null) { if (!other.itemParamList_.isEmpty()) { if (itemParamList_.isEmpty()) { itemParamList_ = other.itemParamList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemParamListIsMutable(); itemParamList_.addAll(other.itemParamList_); } onChanged(); } } else { if (!other.itemParamList_.isEmpty()) { if (itemParamListBuilder_.isEmpty()) { itemParamListBuilder_.dispose(); itemParamListBuilder_ = null; itemParamList_ = other.itemParamList_; bitField0_ = (bitField0_ & ~0x00000001); itemParamListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemParamListFieldBuilder() : null; } else { itemParamListBuilder_.addAllMessages(other.itemParamList_); } } } internalGetMutableItemGuidCountMap().mergeFrom( other.internalGetItemGuidCountMap()); 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 int givingId_ ; /** * uint32 giving_id = 12; * @return The givingId. */ @java.lang.Override public int getGivingId() { return givingId_; } /** * uint32 giving_id = 12; * @param value The givingId to set. * @return This builder for chaining. */ public Builder setGivingId(int value) { givingId_ = value; onChanged(); return this; } /** * uint32 giving_id = 12; * @return This builder for chaining. */ public Builder clearGivingId() { givingId_ = 0; onChanged(); return this; } private java.util.List itemParamList_ = java.util.Collections.emptyList(); private void ensureItemParamListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { itemParamList_ = new java.util.ArrayList(itemParamList_); bitField0_ |= 0x00000001; } } 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_; /** * repeated .ItemParam item_param_list = 15; */ public java.util.List getItemParamListList() { if (itemParamListBuilder_ == null) { return java.util.Collections.unmodifiableList(itemParamList_); } else { return itemParamListBuilder_.getMessageList(); } } /** * repeated .ItemParam item_param_list = 15; */ public int getItemParamListCount() { if (itemParamListBuilder_ == null) { return itemParamList_.size(); } else { return itemParamListBuilder_.getCount(); } } /** * repeated .ItemParam item_param_list = 15; */ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { if (itemParamListBuilder_ == null) { return itemParamList_.get(index); } else { return itemParamListBuilder_.getMessage(index); } } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ 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; } /** * repeated .ItemParam item_param_list = 15; */ public Builder addAllItemParamList( java.lang.Iterable values) { if (itemParamListBuilder_ == null) { ensureItemParamListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, itemParamList_); onChanged(); } else { itemParamListBuilder_.addAllMessages(values); } return this; } /** * repeated .ItemParam item_param_list = 15; */ public Builder clearItemParamList() { if (itemParamListBuilder_ == null) { itemParamList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemParamListBuilder_.clear(); } return this; } /** * repeated .ItemParam item_param_list = 15; */ public Builder removeItemParamList(int index) { if (itemParamListBuilder_ == null) { ensureItemParamListIsMutable(); itemParamList_.remove(index); onChanged(); } else { itemParamListBuilder_.remove(index); } return this; } /** * repeated .ItemParam item_param_list = 15; */ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( int index) { return getItemParamListFieldBuilder().getBuilder(index); } /** * repeated .ItemParam item_param_list = 15; */ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( int index) { if (itemParamListBuilder_ == null) { return itemParamList_.get(index); } else { return itemParamListBuilder_.getMessageOrBuilder(index); } } /** * repeated .ItemParam item_param_list = 15; */ public java.util.List getItemParamListOrBuilderList() { if (itemParamListBuilder_ != null) { return itemParamListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(itemParamList_); } } /** * repeated .ItemParam item_param_list = 15; */ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { return getItemParamListFieldBuilder().addBuilder( emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); } /** * repeated .ItemParam item_param_list = 15; */ public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( int index) { return getItemParamListFieldBuilder().addBuilder( index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); } /** * repeated .ItemParam item_param_list = 15; */ public java.util.List 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); itemParamList_ = null; } return itemParamListBuilder_; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Integer> itemGuidCountMap_; private com.google.protobuf.MapField internalGetItemGuidCountMap() { if (itemGuidCountMap_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemGuidCountMapDefaultEntryHolder.defaultEntry); } return itemGuidCountMap_; } private com.google.protobuf.MapField 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(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @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 getItemGuidCountMap() { return getItemGuidCountMapMap(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public java.util.Map getItemGuidCountMapMap() { return internalGetItemGuidCountMap().getMap(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public int getItemGuidCountMapOrDefault( long key, int defaultValue) { java.util.Map map = internalGetItemGuidCountMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint32> item_guid_count_map = 13; */ @java.lang.Override public int getItemGuidCountMapOrThrow( long key) { java.util.Map map = internalGetItemGuidCountMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearItemGuidCountMap() { internalGetMutableItemGuidCountMap().getMutableMap() .clear(); return this; } /** * map<uint64, uint32> item_guid_count_map = 13; */ public Builder removeItemGuidCountMap( long key) { internalGetMutableItemGuidCountMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableItemGuidCountMap() { return internalGetMutableItemGuidCountMap().getMutableMap(); } /** * map<uint64, uint32> item_guid_count_map = 13; */ public Builder putItemGuidCountMap( long key, int value) { internalGetMutableItemGuidCountMap().getMutableMap() .put(key, value); return this; } /** * map<uint64, uint32> item_guid_count_map = 13; */ public Builder putAllItemGuidCountMap( java.util.Map values) { internalGetMutableItemGuidCountMap().getMutableMap() .putAll(values); return this; } private int itemGivingType_ = 0; /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @return The enum numeric value on the wire for itemGivingType. */ @java.lang.Override public int getItemGivingTypeValue() { return itemGivingType_; } /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @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; } /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @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; } /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @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; } /** * .ItemGivingReq.ItemGivingType item_giving_type = 7; * @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 PARSER = new com.google.protobuf.AbstractParser() { @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 parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser 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\022\021\n\tgiving_id\030\014 \001(\r\022#\n\017i" + "tem_param_list\030\017 \003(\0132\n.ItemParam\022A\n\023item" + "_guid_count_map\030\r \003(\0132$.ItemGivingReq.It" + "emGuidCountMapEntry\0227\n\020item_giving_type\030" + "\007 \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[] { "GivingId", "ItemParamList", "ItemGuidCountMap", "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) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy