// Generated by the protocol buffer compiler. DO NOT EDIT! // source: DoGachaRsp.proto package emu.grasscutter.net.proto; public final class DoGachaRspOuterClass { private DoGachaRspOuterClass() {} 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 DoGachaRspOrBuilder extends // @@protoc_insertion_point(interface_extends:DoGachaRsp) com.google.protobuf.MessageOrBuilder { /** * bool Unk2700_LEEPELHDING = 1435; * @return The unk2700LEEPELHDING. */ boolean getUnk2700LEEPELHDING(); /** * uint32 gacha_schedule_id = 5; * @return The gachaScheduleId. */ int getGachaScheduleId(); /** * uint32 wish_item_id = 8; * @return The wishItemId. */ int getWishItemId(); /** * int32 retcode = 13; * @return The retcode. */ int getRetcode(); /** * uint32 cost_item_num = 10; * @return The costItemNum. */ int getCostItemNum(); /** * uint32 gacha_times_limit = 1; * @return The gachaTimesLimit. */ int getGachaTimesLimit(); /** * uint32 cost_item_id = 14; * @return The costItemId. */ int getCostItemId(); /** * uint32 gacha_type = 12; * @return The gachaType. */ int getGachaType(); /** * uint32 ten_cost_item_id = 7; * @return The tenCostItemId. */ int getTenCostItemId(); /** * uint32 wish_max_progress = 9; * @return The wishMaxProgress. */ int getWishMaxProgress(); /** * uint32 Unk2700_OJKKHDLEDCI = 1240; * @return The unk2700OJKKHDLEDCI. */ int getUnk2700OJKKHDLEDCI(); /** * uint32 ten_cost_item_num = 3; * @return The tenCostItemNum. */ int getTenCostItemNum(); /** * uint32 left_gacha_times = 6; * @return The leftGachaTimes. */ int getLeftGachaTimes(); /** * uint32 wish_progress = 2; * @return The wishProgress. */ int getWishProgress(); /** * uint32 gacha_times = 4; * @return The gachaTimes. */ int getGachaTimes(); /** * repeated .GachaItem gacha_item_list = 15; */ java.util.List getGachaItemListList(); /** * repeated .GachaItem gacha_item_list = 15; */ emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index); /** * repeated .GachaItem gacha_item_list = 15; */ int getGachaItemListCount(); /** * repeated .GachaItem gacha_item_list = 15; */ java.util.List getGachaItemListOrBuilderList(); /** * repeated .GachaItem gacha_item_list = 15; */ emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( int index); /** * uint32 new_gacha_random = 11; * @return The newGachaRandom. */ int getNewGachaRandom(); } /** *
   * CmdId: 1535
   * EnetChannelId: 0
   * EnetIsReliable: false
   * IsAllowClient: true
   * 
* * Protobuf type {@code DoGachaRsp} */ public static final class DoGachaRsp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:DoGachaRsp) DoGachaRspOrBuilder { private static final long serialVersionUID = 0L; // Use DoGachaRsp.newBuilder() to construct. private DoGachaRsp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DoGachaRsp() { gachaItemList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DoGachaRsp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DoGachaRsp( 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 8: { gachaTimesLimit_ = input.readUInt32(); break; } case 16: { wishProgress_ = input.readUInt32(); break; } case 24: { tenCostItemNum_ = input.readUInt32(); break; } case 32: { gachaTimes_ = input.readUInt32(); break; } case 40: { gachaScheduleId_ = input.readUInt32(); break; } case 48: { leftGachaTimes_ = input.readUInt32(); break; } case 56: { tenCostItemId_ = input.readUInt32(); break; } case 64: { wishItemId_ = input.readUInt32(); break; } case 72: { wishMaxProgress_ = input.readUInt32(); break; } case 80: { costItemNum_ = input.readUInt32(); break; } case 88: { newGachaRandom_ = input.readUInt32(); break; } case 96: { gachaType_ = input.readUInt32(); break; } case 104: { retcode_ = input.readInt32(); break; } case 112: { costItemId_ = input.readUInt32(); break; } case 122: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { gachaItemList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } gachaItemList_.add( input.readMessage(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.parser(), extensionRegistry)); break; } case 9920: { unk2700OJKKHDLEDCI_ = input.readUInt32(); break; } case 11480: { unk2700LEEPELHDING_ = input.readBool(); 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)) { gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.class, emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.Builder.class); } public static final int UNK2700_LEEPELHDING_FIELD_NUMBER = 1435; private boolean unk2700LEEPELHDING_; /** * bool Unk2700_LEEPELHDING = 1435; * @return The unk2700LEEPELHDING. */ @java.lang.Override public boolean getUnk2700LEEPELHDING() { return unk2700LEEPELHDING_; } public static final int GACHA_SCHEDULE_ID_FIELD_NUMBER = 5; private int gachaScheduleId_; /** * uint32 gacha_schedule_id = 5; * @return The gachaScheduleId. */ @java.lang.Override public int getGachaScheduleId() { return gachaScheduleId_; } public static final int WISH_ITEM_ID_FIELD_NUMBER = 8; private int wishItemId_; /** * uint32 wish_item_id = 8; * @return The wishItemId. */ @java.lang.Override public int getWishItemId() { return wishItemId_; } public static final int RETCODE_FIELD_NUMBER = 13; private int retcode_; /** * int32 retcode = 13; * @return The retcode. */ @java.lang.Override public int getRetcode() { return retcode_; } public static final int COST_ITEM_NUM_FIELD_NUMBER = 10; private int costItemNum_; /** * uint32 cost_item_num = 10; * @return The costItemNum. */ @java.lang.Override public int getCostItemNum() { return costItemNum_; } public static final int GACHA_TIMES_LIMIT_FIELD_NUMBER = 1; private int gachaTimesLimit_; /** * uint32 gacha_times_limit = 1; * @return The gachaTimesLimit. */ @java.lang.Override public int getGachaTimesLimit() { return gachaTimesLimit_; } public static final int COST_ITEM_ID_FIELD_NUMBER = 14; private int costItemId_; /** * uint32 cost_item_id = 14; * @return The costItemId. */ @java.lang.Override public int getCostItemId() { return costItemId_; } public static final int GACHA_TYPE_FIELD_NUMBER = 12; private int gachaType_; /** * uint32 gacha_type = 12; * @return The gachaType. */ @java.lang.Override public int getGachaType() { return gachaType_; } public static final int TEN_COST_ITEM_ID_FIELD_NUMBER = 7; private int tenCostItemId_; /** * uint32 ten_cost_item_id = 7; * @return The tenCostItemId. */ @java.lang.Override public int getTenCostItemId() { return tenCostItemId_; } public static final int WISH_MAX_PROGRESS_FIELD_NUMBER = 9; private int wishMaxProgress_; /** * uint32 wish_max_progress = 9; * @return The wishMaxProgress. */ @java.lang.Override public int getWishMaxProgress() { return wishMaxProgress_; } public static final int UNK2700_OJKKHDLEDCI_FIELD_NUMBER = 1240; private int unk2700OJKKHDLEDCI_; /** * uint32 Unk2700_OJKKHDLEDCI = 1240; * @return The unk2700OJKKHDLEDCI. */ @java.lang.Override public int getUnk2700OJKKHDLEDCI() { return unk2700OJKKHDLEDCI_; } public static final int TEN_COST_ITEM_NUM_FIELD_NUMBER = 3; private int tenCostItemNum_; /** * uint32 ten_cost_item_num = 3; * @return The tenCostItemNum. */ @java.lang.Override public int getTenCostItemNum() { return tenCostItemNum_; } public static final int LEFT_GACHA_TIMES_FIELD_NUMBER = 6; private int leftGachaTimes_; /** * uint32 left_gacha_times = 6; * @return The leftGachaTimes. */ @java.lang.Override public int getLeftGachaTimes() { return leftGachaTimes_; } public static final int WISH_PROGRESS_FIELD_NUMBER = 2; private int wishProgress_; /** * uint32 wish_progress = 2; * @return The wishProgress. */ @java.lang.Override public int getWishProgress() { return wishProgress_; } public static final int GACHA_TIMES_FIELD_NUMBER = 4; private int gachaTimes_; /** * uint32 gacha_times = 4; * @return The gachaTimes. */ @java.lang.Override public int getGachaTimes() { return gachaTimes_; } public static final int GACHA_ITEM_LIST_FIELD_NUMBER = 15; private java.util.List gachaItemList_; /** * repeated .GachaItem gacha_item_list = 15; */ @java.lang.Override public java.util.List getGachaItemListList() { return gachaItemList_; } /** * repeated .GachaItem gacha_item_list = 15; */ @java.lang.Override public java.util.List getGachaItemListOrBuilderList() { return gachaItemList_; } /** * repeated .GachaItem gacha_item_list = 15; */ @java.lang.Override public int getGachaItemListCount() { return gachaItemList_.size(); } /** * repeated .GachaItem gacha_item_list = 15; */ @java.lang.Override public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { return gachaItemList_.get(index); } /** * repeated .GachaItem gacha_item_list = 15; */ @java.lang.Override public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( int index) { return gachaItemList_.get(index); } public static final int NEW_GACHA_RANDOM_FIELD_NUMBER = 11; private int newGachaRandom_; /** * uint32 new_gacha_random = 11; * @return The newGachaRandom. */ @java.lang.Override public int getNewGachaRandom() { return newGachaRandom_; } 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 (gachaTimesLimit_ != 0) { output.writeUInt32(1, gachaTimesLimit_); } if (wishProgress_ != 0) { output.writeUInt32(2, wishProgress_); } if (tenCostItemNum_ != 0) { output.writeUInt32(3, tenCostItemNum_); } if (gachaTimes_ != 0) { output.writeUInt32(4, gachaTimes_); } if (gachaScheduleId_ != 0) { output.writeUInt32(5, gachaScheduleId_); } if (leftGachaTimes_ != 0) { output.writeUInt32(6, leftGachaTimes_); } if (tenCostItemId_ != 0) { output.writeUInt32(7, tenCostItemId_); } if (wishItemId_ != 0) { output.writeUInt32(8, wishItemId_); } if (wishMaxProgress_ != 0) { output.writeUInt32(9, wishMaxProgress_); } if (costItemNum_ != 0) { output.writeUInt32(10, costItemNum_); } if (newGachaRandom_ != 0) { output.writeUInt32(11, newGachaRandom_); } if (gachaType_ != 0) { output.writeUInt32(12, gachaType_); } if (retcode_ != 0) { output.writeInt32(13, retcode_); } if (costItemId_ != 0) { output.writeUInt32(14, costItemId_); } for (int i = 0; i < gachaItemList_.size(); i++) { output.writeMessage(15, gachaItemList_.get(i)); } if (unk2700OJKKHDLEDCI_ != 0) { output.writeUInt32(1240, unk2700OJKKHDLEDCI_); } if (unk2700LEEPELHDING_ != false) { output.writeBool(1435, unk2700LEEPELHDING_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (gachaTimesLimit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gachaTimesLimit_); } if (wishProgress_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, wishProgress_); } if (tenCostItemNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, tenCostItemNum_); } if (gachaTimes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, gachaTimes_); } if (gachaScheduleId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, gachaScheduleId_); } if (leftGachaTimes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, leftGachaTimes_); } if (tenCostItemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, tenCostItemId_); } if (wishItemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, wishItemId_); } if (wishMaxProgress_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, wishMaxProgress_); } if (costItemNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, costItemNum_); } if (newGachaRandom_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, newGachaRandom_); } if (gachaType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, gachaType_); } if (retcode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, retcode_); } if (costItemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(14, costItemId_); } for (int i = 0; i < gachaItemList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, gachaItemList_.get(i)); } if (unk2700OJKKHDLEDCI_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1240, unk2700OJKKHDLEDCI_); } if (unk2700LEEPELHDING_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1435, unk2700LEEPELHDING_); } 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.DoGachaRspOuterClass.DoGachaRsp)) { return super.equals(obj); } emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) obj; if (getUnk2700LEEPELHDING() != other.getUnk2700LEEPELHDING()) return false; if (getGachaScheduleId() != other.getGachaScheduleId()) return false; if (getWishItemId() != other.getWishItemId()) return false; if (getRetcode() != other.getRetcode()) return false; if (getCostItemNum() != other.getCostItemNum()) return false; if (getGachaTimesLimit() != other.getGachaTimesLimit()) return false; if (getCostItemId() != other.getCostItemId()) return false; if (getGachaType() != other.getGachaType()) return false; if (getTenCostItemId() != other.getTenCostItemId()) return false; if (getWishMaxProgress() != other.getWishMaxProgress()) return false; if (getUnk2700OJKKHDLEDCI() != other.getUnk2700OJKKHDLEDCI()) return false; if (getTenCostItemNum() != other.getTenCostItemNum()) return false; if (getLeftGachaTimes() != other.getLeftGachaTimes()) return false; if (getWishProgress() != other.getWishProgress()) return false; if (getGachaTimes() != other.getGachaTimes()) return false; if (!getGachaItemListList() .equals(other.getGachaItemListList())) return false; if (getNewGachaRandom() != other.getNewGachaRandom()) 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) + UNK2700_LEEPELHDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnk2700LEEPELHDING()); hash = (37 * hash) + GACHA_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getGachaScheduleId(); hash = (37 * hash) + WISH_ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + getWishItemId(); hash = (37 * hash) + RETCODE_FIELD_NUMBER; hash = (53 * hash) + getRetcode(); hash = (37 * hash) + COST_ITEM_NUM_FIELD_NUMBER; hash = (53 * hash) + getCostItemNum(); hash = (37 * hash) + GACHA_TIMES_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getGachaTimesLimit(); hash = (37 * hash) + COST_ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + getCostItemId(); hash = (37 * hash) + GACHA_TYPE_FIELD_NUMBER; hash = (53 * hash) + getGachaType(); hash = (37 * hash) + TEN_COST_ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + getTenCostItemId(); hash = (37 * hash) + WISH_MAX_PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getWishMaxProgress(); hash = (37 * hash) + UNK2700_OJKKHDLEDCI_FIELD_NUMBER; hash = (53 * hash) + getUnk2700OJKKHDLEDCI(); hash = (37 * hash) + TEN_COST_ITEM_NUM_FIELD_NUMBER; hash = (53 * hash) + getTenCostItemNum(); hash = (37 * hash) + LEFT_GACHA_TIMES_FIELD_NUMBER; hash = (53 * hash) + getLeftGachaTimes(); hash = (37 * hash) + WISH_PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getWishProgress(); hash = (37 * hash) + GACHA_TIMES_FIELD_NUMBER; hash = (53 * hash) + getGachaTimes(); if (getGachaItemListCount() > 0) { hash = (37 * hash) + GACHA_ITEM_LIST_FIELD_NUMBER; hash = (53 * hash) + getGachaItemListList().hashCode(); } hash = (37 * hash) + NEW_GACHA_RANDOM_FIELD_NUMBER; hash = (53 * hash) + getNewGachaRandom(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp 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: 1535
     * EnetChannelId: 0
     * EnetIsReliable: false
     * IsAllowClient: true
     * 
* * Protobuf type {@code DoGachaRsp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:DoGachaRsp) emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRspOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.class, emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.Builder.class); } // Construct using emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGachaItemListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); unk2700LEEPELHDING_ = false; gachaScheduleId_ = 0; wishItemId_ = 0; retcode_ = 0; costItemNum_ = 0; gachaTimesLimit_ = 0; costItemId_ = 0; gachaType_ = 0; tenCostItemId_ = 0; wishMaxProgress_ = 0; unk2700OJKKHDLEDCI_ = 0; tenCostItemNum_ = 0; leftGachaTimes_ = 0; wishProgress_ = 0; gachaTimes_ = 0; if (gachaItemListBuilder_ == null) { gachaItemList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { gachaItemListBuilder_.clear(); } newGachaRandom_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstanceForType() { return emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp build() { emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp buildPartial() { emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp result = new emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp(this); int from_bitField0_ = bitField0_; result.unk2700LEEPELHDING_ = unk2700LEEPELHDING_; result.gachaScheduleId_ = gachaScheduleId_; result.wishItemId_ = wishItemId_; result.retcode_ = retcode_; result.costItemNum_ = costItemNum_; result.gachaTimesLimit_ = gachaTimesLimit_; result.costItemId_ = costItemId_; result.gachaType_ = gachaType_; result.tenCostItemId_ = tenCostItemId_; result.wishMaxProgress_ = wishMaxProgress_; result.unk2700OJKKHDLEDCI_ = unk2700OJKKHDLEDCI_; result.tenCostItemNum_ = tenCostItemNum_; result.leftGachaTimes_ = leftGachaTimes_; result.wishProgress_ = wishProgress_; result.gachaTimes_ = gachaTimes_; if (gachaItemListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_); bitField0_ = (bitField0_ & ~0x00000001); } result.gachaItemList_ = gachaItemList_; } else { result.gachaItemList_ = gachaItemListBuilder_.build(); } result.newGachaRandom_ = newGachaRandom_; 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.DoGachaRspOuterClass.DoGachaRsp) { return mergeFrom((emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other) { if (other == emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.getDefaultInstance()) return this; if (other.getUnk2700LEEPELHDING() != false) { setUnk2700LEEPELHDING(other.getUnk2700LEEPELHDING()); } if (other.getGachaScheduleId() != 0) { setGachaScheduleId(other.getGachaScheduleId()); } if (other.getWishItemId() != 0) { setWishItemId(other.getWishItemId()); } if (other.getRetcode() != 0) { setRetcode(other.getRetcode()); } if (other.getCostItemNum() != 0) { setCostItemNum(other.getCostItemNum()); } if (other.getGachaTimesLimit() != 0) { setGachaTimesLimit(other.getGachaTimesLimit()); } if (other.getCostItemId() != 0) { setCostItemId(other.getCostItemId()); } if (other.getGachaType() != 0) { setGachaType(other.getGachaType()); } if (other.getTenCostItemId() != 0) { setTenCostItemId(other.getTenCostItemId()); } if (other.getWishMaxProgress() != 0) { setWishMaxProgress(other.getWishMaxProgress()); } if (other.getUnk2700OJKKHDLEDCI() != 0) { setUnk2700OJKKHDLEDCI(other.getUnk2700OJKKHDLEDCI()); } if (other.getTenCostItemNum() != 0) { setTenCostItemNum(other.getTenCostItemNum()); } if (other.getLeftGachaTimes() != 0) { setLeftGachaTimes(other.getLeftGachaTimes()); } if (other.getWishProgress() != 0) { setWishProgress(other.getWishProgress()); } if (other.getGachaTimes() != 0) { setGachaTimes(other.getGachaTimes()); } if (gachaItemListBuilder_ == null) { if (!other.gachaItemList_.isEmpty()) { if (gachaItemList_.isEmpty()) { gachaItemList_ = other.gachaItemList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGachaItemListIsMutable(); gachaItemList_.addAll(other.gachaItemList_); } onChanged(); } } else { if (!other.gachaItemList_.isEmpty()) { if (gachaItemListBuilder_.isEmpty()) { gachaItemListBuilder_.dispose(); gachaItemListBuilder_ = null; gachaItemList_ = other.gachaItemList_; bitField0_ = (bitField0_ & ~0x00000001); gachaItemListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGachaItemListFieldBuilder() : null; } else { gachaItemListBuilder_.addAllMessages(other.gachaItemList_); } } } if (other.getNewGachaRandom() != 0) { setNewGachaRandom(other.getNewGachaRandom()); } 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.DoGachaRspOuterClass.DoGachaRsp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean unk2700LEEPELHDING_ ; /** * bool Unk2700_LEEPELHDING = 1435; * @return The unk2700LEEPELHDING. */ @java.lang.Override public boolean getUnk2700LEEPELHDING() { return unk2700LEEPELHDING_; } /** * bool Unk2700_LEEPELHDING = 1435; * @param value The unk2700LEEPELHDING to set. * @return This builder for chaining. */ public Builder setUnk2700LEEPELHDING(boolean value) { unk2700LEEPELHDING_ = value; onChanged(); return this; } /** * bool Unk2700_LEEPELHDING = 1435; * @return This builder for chaining. */ public Builder clearUnk2700LEEPELHDING() { unk2700LEEPELHDING_ = false; onChanged(); return this; } private int gachaScheduleId_ ; /** * uint32 gacha_schedule_id = 5; * @return The gachaScheduleId. */ @java.lang.Override public int getGachaScheduleId() { return gachaScheduleId_; } /** * uint32 gacha_schedule_id = 5; * @param value The gachaScheduleId to set. * @return This builder for chaining. */ public Builder setGachaScheduleId(int value) { gachaScheduleId_ = value; onChanged(); return this; } /** * uint32 gacha_schedule_id = 5; * @return This builder for chaining. */ public Builder clearGachaScheduleId() { gachaScheduleId_ = 0; onChanged(); return this; } private int wishItemId_ ; /** * uint32 wish_item_id = 8; * @return The wishItemId. */ @java.lang.Override public int getWishItemId() { return wishItemId_; } /** * uint32 wish_item_id = 8; * @param value The wishItemId to set. * @return This builder for chaining. */ public Builder setWishItemId(int value) { wishItemId_ = value; onChanged(); return this; } /** * uint32 wish_item_id = 8; * @return This builder for chaining. */ public Builder clearWishItemId() { wishItemId_ = 0; onChanged(); return this; } private int retcode_ ; /** * int32 retcode = 13; * @return The retcode. */ @java.lang.Override public int getRetcode() { return retcode_; } /** * int32 retcode = 13; * @param value The retcode to set. * @return This builder for chaining. */ public Builder setRetcode(int value) { retcode_ = value; onChanged(); return this; } /** * int32 retcode = 13; * @return This builder for chaining. */ public Builder clearRetcode() { retcode_ = 0; onChanged(); return this; } private int costItemNum_ ; /** * uint32 cost_item_num = 10; * @return The costItemNum. */ @java.lang.Override public int getCostItemNum() { return costItemNum_; } /** * uint32 cost_item_num = 10; * @param value The costItemNum to set. * @return This builder for chaining. */ public Builder setCostItemNum(int value) { costItemNum_ = value; onChanged(); return this; } /** * uint32 cost_item_num = 10; * @return This builder for chaining. */ public Builder clearCostItemNum() { costItemNum_ = 0; onChanged(); return this; } private int gachaTimesLimit_ ; /** * uint32 gacha_times_limit = 1; * @return The gachaTimesLimit. */ @java.lang.Override public int getGachaTimesLimit() { return gachaTimesLimit_; } /** * uint32 gacha_times_limit = 1; * @param value The gachaTimesLimit to set. * @return This builder for chaining. */ public Builder setGachaTimesLimit(int value) { gachaTimesLimit_ = value; onChanged(); return this; } /** * uint32 gacha_times_limit = 1; * @return This builder for chaining. */ public Builder clearGachaTimesLimit() { gachaTimesLimit_ = 0; onChanged(); return this; } private int costItemId_ ; /** * uint32 cost_item_id = 14; * @return The costItemId. */ @java.lang.Override public int getCostItemId() { return costItemId_; } /** * uint32 cost_item_id = 14; * @param value The costItemId to set. * @return This builder for chaining. */ public Builder setCostItemId(int value) { costItemId_ = value; onChanged(); return this; } /** * uint32 cost_item_id = 14; * @return This builder for chaining. */ public Builder clearCostItemId() { costItemId_ = 0; onChanged(); return this; } private int gachaType_ ; /** * uint32 gacha_type = 12; * @return The gachaType. */ @java.lang.Override public int getGachaType() { return gachaType_; } /** * uint32 gacha_type = 12; * @param value The gachaType to set. * @return This builder for chaining. */ public Builder setGachaType(int value) { gachaType_ = value; onChanged(); return this; } /** * uint32 gacha_type = 12; * @return This builder for chaining. */ public Builder clearGachaType() { gachaType_ = 0; onChanged(); return this; } private int tenCostItemId_ ; /** * uint32 ten_cost_item_id = 7; * @return The tenCostItemId. */ @java.lang.Override public int getTenCostItemId() { return tenCostItemId_; } /** * uint32 ten_cost_item_id = 7; * @param value The tenCostItemId to set. * @return This builder for chaining. */ public Builder setTenCostItemId(int value) { tenCostItemId_ = value; onChanged(); return this; } /** * uint32 ten_cost_item_id = 7; * @return This builder for chaining. */ public Builder clearTenCostItemId() { tenCostItemId_ = 0; onChanged(); return this; } private int wishMaxProgress_ ; /** * uint32 wish_max_progress = 9; * @return The wishMaxProgress. */ @java.lang.Override public int getWishMaxProgress() { return wishMaxProgress_; } /** * uint32 wish_max_progress = 9; * @param value The wishMaxProgress to set. * @return This builder for chaining. */ public Builder setWishMaxProgress(int value) { wishMaxProgress_ = value; onChanged(); return this; } /** * uint32 wish_max_progress = 9; * @return This builder for chaining. */ public Builder clearWishMaxProgress() { wishMaxProgress_ = 0; onChanged(); return this; } private int unk2700OJKKHDLEDCI_ ; /** * uint32 Unk2700_OJKKHDLEDCI = 1240; * @return The unk2700OJKKHDLEDCI. */ @java.lang.Override public int getUnk2700OJKKHDLEDCI() { return unk2700OJKKHDLEDCI_; } /** * uint32 Unk2700_OJKKHDLEDCI = 1240; * @param value The unk2700OJKKHDLEDCI to set. * @return This builder for chaining. */ public Builder setUnk2700OJKKHDLEDCI(int value) { unk2700OJKKHDLEDCI_ = value; onChanged(); return this; } /** * uint32 Unk2700_OJKKHDLEDCI = 1240; * @return This builder for chaining. */ public Builder clearUnk2700OJKKHDLEDCI() { unk2700OJKKHDLEDCI_ = 0; onChanged(); return this; } private int tenCostItemNum_ ; /** * uint32 ten_cost_item_num = 3; * @return The tenCostItemNum. */ @java.lang.Override public int getTenCostItemNum() { return tenCostItemNum_; } /** * uint32 ten_cost_item_num = 3; * @param value The tenCostItemNum to set. * @return This builder for chaining. */ public Builder setTenCostItemNum(int value) { tenCostItemNum_ = value; onChanged(); return this; } /** * uint32 ten_cost_item_num = 3; * @return This builder for chaining. */ public Builder clearTenCostItemNum() { tenCostItemNum_ = 0; onChanged(); return this; } private int leftGachaTimes_ ; /** * uint32 left_gacha_times = 6; * @return The leftGachaTimes. */ @java.lang.Override public int getLeftGachaTimes() { return leftGachaTimes_; } /** * uint32 left_gacha_times = 6; * @param value The leftGachaTimes to set. * @return This builder for chaining. */ public Builder setLeftGachaTimes(int value) { leftGachaTimes_ = value; onChanged(); return this; } /** * uint32 left_gacha_times = 6; * @return This builder for chaining. */ public Builder clearLeftGachaTimes() { leftGachaTimes_ = 0; onChanged(); return this; } private int wishProgress_ ; /** * uint32 wish_progress = 2; * @return The wishProgress. */ @java.lang.Override public int getWishProgress() { return wishProgress_; } /** * uint32 wish_progress = 2; * @param value The wishProgress to set. * @return This builder for chaining. */ public Builder setWishProgress(int value) { wishProgress_ = value; onChanged(); return this; } /** * uint32 wish_progress = 2; * @return This builder for chaining. */ public Builder clearWishProgress() { wishProgress_ = 0; onChanged(); return this; } private int gachaTimes_ ; /** * uint32 gacha_times = 4; * @return The gachaTimes. */ @java.lang.Override public int getGachaTimes() { return gachaTimes_; } /** * uint32 gacha_times = 4; * @param value The gachaTimes to set. * @return This builder for chaining. */ public Builder setGachaTimes(int value) { gachaTimes_ = value; onChanged(); return this; } /** * uint32 gacha_times = 4; * @return This builder for chaining. */ public Builder clearGachaTimes() { gachaTimes_ = 0; onChanged(); return this; } private java.util.List gachaItemList_ = java.util.Collections.emptyList(); private void ensureGachaItemListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { gachaItemList_ = new java.util.ArrayList(gachaItemList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> gachaItemListBuilder_; /** * repeated .GachaItem gacha_item_list = 15; */ public java.util.List getGachaItemListList() { if (gachaItemListBuilder_ == null) { return java.util.Collections.unmodifiableList(gachaItemList_); } else { return gachaItemListBuilder_.getMessageList(); } } /** * repeated .GachaItem gacha_item_list = 15; */ public int getGachaItemListCount() { if (gachaItemListBuilder_ == null) { return gachaItemList_.size(); } else { return gachaItemListBuilder_.getCount(); } } /** * repeated .GachaItem gacha_item_list = 15; */ public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { if (gachaItemListBuilder_ == null) { return gachaItemList_.get(index); } else { return gachaItemListBuilder_.getMessage(index); } } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder setGachaItemList( int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { if (gachaItemListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaItemListIsMutable(); gachaItemList_.set(index, value); onChanged(); } else { gachaItemListBuilder_.setMessage(index, value); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder setGachaItemList( int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { if (gachaItemListBuilder_ == null) { ensureGachaItemListIsMutable(); gachaItemList_.set(index, builderForValue.build()); onChanged(); } else { gachaItemListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder addGachaItemList(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { if (gachaItemListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaItemListIsMutable(); gachaItemList_.add(value); onChanged(); } else { gachaItemListBuilder_.addMessage(value); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder addGachaItemList( int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) { if (gachaItemListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaItemListIsMutable(); gachaItemList_.add(index, value); onChanged(); } else { gachaItemListBuilder_.addMessage(index, value); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder addGachaItemList( emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { if (gachaItemListBuilder_ == null) { ensureGachaItemListIsMutable(); gachaItemList_.add(builderForValue.build()); onChanged(); } else { gachaItemListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder addGachaItemList( int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) { if (gachaItemListBuilder_ == null) { ensureGachaItemListIsMutable(); gachaItemList_.add(index, builderForValue.build()); onChanged(); } else { gachaItemListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder addAllGachaItemList( java.lang.Iterable values) { if (gachaItemListBuilder_ == null) { ensureGachaItemListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, gachaItemList_); onChanged(); } else { gachaItemListBuilder_.addAllMessages(values); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder clearGachaItemList() { if (gachaItemListBuilder_ == null) { gachaItemList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { gachaItemListBuilder_.clear(); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public Builder removeGachaItemList(int index) { if (gachaItemListBuilder_ == null) { ensureGachaItemListIsMutable(); gachaItemList_.remove(index); onChanged(); } else { gachaItemListBuilder_.remove(index); } return this; } /** * repeated .GachaItem gacha_item_list = 15; */ public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder getGachaItemListBuilder( int index) { return getGachaItemListFieldBuilder().getBuilder(index); } /** * repeated .GachaItem gacha_item_list = 15; */ public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( int index) { if (gachaItemListBuilder_ == null) { return gachaItemList_.get(index); } else { return gachaItemListBuilder_.getMessageOrBuilder(index); } } /** * repeated .GachaItem gacha_item_list = 15; */ public java.util.List getGachaItemListOrBuilderList() { if (gachaItemListBuilder_ != null) { return gachaItemListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(gachaItemList_); } } /** * repeated .GachaItem gacha_item_list = 15; */ public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder() { return getGachaItemListFieldBuilder().addBuilder( emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); } /** * repeated .GachaItem gacha_item_list = 15; */ public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder( int index) { return getGachaItemListFieldBuilder().addBuilder( index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); } /** * repeated .GachaItem gacha_item_list = 15; */ public java.util.List getGachaItemListBuilderList() { return getGachaItemListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> getGachaItemListFieldBuilder() { if (gachaItemListBuilder_ == null) { gachaItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder>( gachaItemList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); gachaItemList_ = null; } return gachaItemListBuilder_; } private int newGachaRandom_ ; /** * uint32 new_gacha_random = 11; * @return The newGachaRandom. */ @java.lang.Override public int getNewGachaRandom() { return newGachaRandom_; } /** * uint32 new_gacha_random = 11; * @param value The newGachaRandom to set. * @return This builder for chaining. */ public Builder setNewGachaRandom(int value) { newGachaRandom_ = value; onChanged(); return this; } /** * uint32 new_gacha_random = 11; * @return This builder for chaining. */ public Builder clearNewGachaRandom() { newGachaRandom_ = 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:DoGachaRsp) } // @@protoc_insertion_point(class_scope:DoGachaRsp) private static final emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp(); } public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DoGachaRsp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DoGachaRsp(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.DoGachaRspOuterClass.DoGachaRsp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_DoGachaRsp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_DoGachaRsp_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\020DoGachaRsp.proto\032\017GachaItem.proto\"\273\003\n\n" + "DoGachaRsp\022\034\n\023Unk2700_LEEPELHDING\030\233\013 \001(\010" + "\022\031\n\021gacha_schedule_id\030\005 \001(\r\022\024\n\014wish_item" + "_id\030\010 \001(\r\022\017\n\007retcode\030\r \001(\005\022\025\n\rcost_item_" + "num\030\n \001(\r\022\031\n\021gacha_times_limit\030\001 \001(\r\022\024\n\014" + "cost_item_id\030\016 \001(\r\022\022\n\ngacha_type\030\014 \001(\r\022\030" + "\n\020ten_cost_item_id\030\007 \001(\r\022\031\n\021wish_max_pro" + "gress\030\t \001(\r\022\034\n\023Unk2700_OJKKHDLEDCI\030\330\t \001(" + "\r\022\031\n\021ten_cost_item_num\030\003 \001(\r\022\030\n\020left_gac" + "ha_times\030\006 \001(\r\022\025\n\rwish_progress\030\002 \001(\r\022\023\n" + "\013gacha_times\030\004 \001(\r\022#\n\017gacha_item_list\030\017 " + "\003(\0132\n.GachaItem\022\030\n\020new_gacha_random\030\013 \001(" + "\rB\033\n\031emu.grasscutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor(), }); internal_static_DoGachaRsp_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_DoGachaRsp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_DoGachaRsp_descriptor, new java.lang.String[] { "Unk2700LEEPELHDING", "GachaScheduleId", "WishItemId", "Retcode", "CostItemNum", "GachaTimesLimit", "CostItemId", "GachaType", "TenCostItemId", "WishMaxProgress", "Unk2700OJKKHDLEDCI", "TenCostItemNum", "LeftGachaTimes", "WishProgress", "GachaTimes", "GachaItemList", "NewGachaRandom", }); emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }