// Generated by the protocol buffer compiler. DO NOT EDIT! // source: GachaInfo.proto package emu.grasscutter.net.proto; public final class GachaInfoOuterClass { private GachaInfoOuterClass() {} 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 GachaInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:GachaInfo) com.google.protobuf.MessageOrBuilder { /** * uint32 gachaType = 1; * @return The gachaType. */ int getGachaType(); /** * uint32 scheduleId = 2; * @return The scheduleId. */ int getScheduleId(); /** * uint32 beginTime = 3; * @return The beginTime. */ int getBeginTime(); /** * uint32 endTime = 4; * @return The endTime. */ int getEndTime(); /** * uint32 costItemId = 5; * @return The costItemId. */ int getCostItemId(); /** * uint32 costItemNum = 6; * @return The costItemNum. */ int getCostItemNum(); /** * string gachaPrefabPath = 7; * @return The gachaPrefabPath. */ java.lang.String getGachaPrefabPath(); /** * string gachaPrefabPath = 7; * @return The bytes for gachaPrefabPath. */ com.google.protobuf.ByteString getGachaPrefabPathBytes(); /** * string gachaProbUrl = 8; * @return The gachaProbUrl. */ java.lang.String getGachaProbUrl(); /** * string gachaProbUrl = 8; * @return The bytes for gachaProbUrl. */ com.google.protobuf.ByteString getGachaProbUrlBytes(); /** * string gachaRecordUrl = 9; * @return The gachaRecordUrl. */ java.lang.String getGachaRecordUrl(); /** * string gachaRecordUrl = 9; * @return The bytes for gachaRecordUrl. */ com.google.protobuf.ByteString getGachaRecordUrlBytes(); /** * string gachaPreviewPrefabPath = 10; * @return The gachaPreviewPrefabPath. */ java.lang.String getGachaPreviewPrefabPath(); /** * string gachaPreviewPrefabPath = 10; * @return The bytes for gachaPreviewPrefabPath. */ com.google.protobuf.ByteString getGachaPreviewPrefabPathBytes(); /** * uint32 tenCostItemId = 11; * @return The tenCostItemId. */ int getTenCostItemId(); /** * uint32 tenCostItemNum = 12; * @return The tenCostItemNum. */ int getTenCostItemNum(); /** * uint32 leftGachaTimes = 13; * @return The leftGachaTimes. */ int getLeftGachaTimes(); /** * uint32 gachaTimesLimit = 14; * @return The gachaTimesLimit. */ int getGachaTimesLimit(); /** * uint32 gachaSortId = 15; * @return The gachaSortId. */ int getGachaSortId(); /** * string gachaProbUrlOversea = 16; * @return The gachaProbUrlOversea. */ java.lang.String getGachaProbUrlOversea(); /** * string gachaProbUrlOversea = 16; * @return The bytes for gachaProbUrlOversea. */ com.google.protobuf.ByteString getGachaProbUrlOverseaBytes(); /** * string gachaRecordUrlOversea = 17; * @return The gachaRecordUrlOversea. */ java.lang.String getGachaRecordUrlOversea(); /** * string gachaRecordUrlOversea = 17; * @return The bytes for gachaRecordUrlOversea. */ com.google.protobuf.ByteString getGachaRecordUrlOverseaBytes(); /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ java.util.List getGachaUpInfoListList(); /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index); /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ int getGachaUpInfoListCount(); /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ java.util.List getGachaUpInfoListOrBuilderList(); /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( int index); /** * string gachaTitlePath = 19; * @return The gachaTitlePath. */ java.lang.String getGachaTitlePath(); /** * string gachaTitlePath = 19; * @return The bytes for gachaTitlePath. */ com.google.protobuf.ByteString getGachaTitlePathBytes(); /** * repeated uint32 mainNameId = 20; * @return A list containing the mainNameId. */ java.util.List getMainNameIdList(); /** * repeated uint32 mainNameId = 20; * @return The count of mainNameId. */ int getMainNameIdCount(); /** * repeated uint32 mainNameId = 20; * @param index The index of the element to return. * @return The mainNameId at the given index. */ int getMainNameId(int index); /** * repeated uint32 subNameId = 21; * @return A list containing the subNameId. */ java.util.List getSubNameIdList(); /** * repeated uint32 subNameId = 21; * @return The count of subNameId. */ int getSubNameIdCount(); /** * repeated uint32 subNameId = 21; * @param index The index of the element to return. * @return The subNameId at the given index. */ int getSubNameId(int index); } /** * Protobuf type {@code GachaInfo} */ public static final class GachaInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:GachaInfo) GachaInfoOrBuilder { private static final long serialVersionUID = 0L; // Use GachaInfo.newBuilder() to construct. private GachaInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GachaInfo() { gachaPrefabPath_ = ""; gachaProbUrl_ = ""; gachaRecordUrl_ = ""; gachaPreviewPrefabPath_ = ""; gachaProbUrlOversea_ = ""; gachaRecordUrlOversea_ = ""; gachaUpInfoList_ = java.util.Collections.emptyList(); gachaTitlePath_ = ""; mainNameId_ = emptyIntList(); subNameId_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GachaInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GachaInfo( 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: { gachaType_ = input.readUInt32(); break; } case 16: { scheduleId_ = input.readUInt32(); break; } case 24: { beginTime_ = input.readUInt32(); break; } case 32: { endTime_ = input.readUInt32(); break; } case 40: { costItemId_ = input.readUInt32(); break; } case 48: { costItemNum_ = input.readUInt32(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); gachaPrefabPath_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); gachaProbUrl_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); gachaRecordUrl_ = s; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); gachaPreviewPrefabPath_ = s; break; } case 88: { tenCostItemId_ = input.readUInt32(); break; } case 96: { tenCostItemNum_ = input.readUInt32(); break; } case 104: { leftGachaTimes_ = input.readUInt32(); break; } case 112: { gachaTimesLimit_ = input.readUInt32(); break; } case 120: { gachaSortId_ = input.readUInt32(); break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); gachaProbUrlOversea_ = s; break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); gachaRecordUrlOversea_ = s; break; } case 146: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { gachaUpInfoList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } gachaUpInfoList_.add( input.readMessage(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.parser(), extensionRegistry)); break; } case 154: { java.lang.String s = input.readStringRequireUtf8(); gachaTitlePath_ = s; break; } case 160: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { mainNameId_ = newIntList(); mutable_bitField0_ |= 0x00000002; } mainNameId_.addInt(input.readUInt32()); break; } case 162: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { mainNameId_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { mainNameId_.addInt(input.readUInt32()); } input.popLimit(limit); break; } case 168: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { subNameId_ = newIntList(); mutable_bitField0_ |= 0x00000004; } subNameId_.addInt(input.readUInt32()); break; } case 170: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { subNameId_ = newIntList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { subNameId_.addInt(input.readUInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { gachaUpInfoList_ = java.util.Collections.unmodifiableList(gachaUpInfoList_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { mainNameId_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000004) != 0)) { subNameId_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.class, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder.class); } public static final int GACHATYPE_FIELD_NUMBER = 1; private int gachaType_; /** * uint32 gachaType = 1; * @return The gachaType. */ @java.lang.Override public int getGachaType() { return gachaType_; } public static final int SCHEDULEID_FIELD_NUMBER = 2; private int scheduleId_; /** * uint32 scheduleId = 2; * @return The scheduleId. */ @java.lang.Override public int getScheduleId() { return scheduleId_; } public static final int BEGINTIME_FIELD_NUMBER = 3; private int beginTime_; /** * uint32 beginTime = 3; * @return The beginTime. */ @java.lang.Override public int getBeginTime() { return beginTime_; } public static final int ENDTIME_FIELD_NUMBER = 4; private int endTime_; /** * uint32 endTime = 4; * @return The endTime. */ @java.lang.Override public int getEndTime() { return endTime_; } public static final int COSTITEMID_FIELD_NUMBER = 5; private int costItemId_; /** * uint32 costItemId = 5; * @return The costItemId. */ @java.lang.Override public int getCostItemId() { return costItemId_; } public static final int COSTITEMNUM_FIELD_NUMBER = 6; private int costItemNum_; /** * uint32 costItemNum = 6; * @return The costItemNum. */ @java.lang.Override public int getCostItemNum() { return costItemNum_; } public static final int GACHAPREFABPATH_FIELD_NUMBER = 7; private volatile java.lang.Object gachaPrefabPath_; /** * string gachaPrefabPath = 7; * @return The gachaPrefabPath. */ @java.lang.Override public java.lang.String getGachaPrefabPath() { java.lang.Object ref = gachaPrefabPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaPrefabPath_ = s; return s; } } /** * string gachaPrefabPath = 7; * @return The bytes for gachaPrefabPath. */ @java.lang.Override public com.google.protobuf.ByteString getGachaPrefabPathBytes() { java.lang.Object ref = gachaPrefabPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaPrefabPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GACHAPROBURL_FIELD_NUMBER = 8; private volatile java.lang.Object gachaProbUrl_; /** * string gachaProbUrl = 8; * @return The gachaProbUrl. */ @java.lang.Override public java.lang.String getGachaProbUrl() { java.lang.Object ref = gachaProbUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaProbUrl_ = s; return s; } } /** * string gachaProbUrl = 8; * @return The bytes for gachaProbUrl. */ @java.lang.Override public com.google.protobuf.ByteString getGachaProbUrlBytes() { java.lang.Object ref = gachaProbUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaProbUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GACHARECORDURL_FIELD_NUMBER = 9; private volatile java.lang.Object gachaRecordUrl_; /** * string gachaRecordUrl = 9; * @return The gachaRecordUrl. */ @java.lang.Override public java.lang.String getGachaRecordUrl() { java.lang.Object ref = gachaRecordUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaRecordUrl_ = s; return s; } } /** * string gachaRecordUrl = 9; * @return The bytes for gachaRecordUrl. */ @java.lang.Override public com.google.protobuf.ByteString getGachaRecordUrlBytes() { java.lang.Object ref = gachaRecordUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaRecordUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GACHAPREVIEWPREFABPATH_FIELD_NUMBER = 10; private volatile java.lang.Object gachaPreviewPrefabPath_; /** * string gachaPreviewPrefabPath = 10; * @return The gachaPreviewPrefabPath. */ @java.lang.Override public java.lang.String getGachaPreviewPrefabPath() { java.lang.Object ref = gachaPreviewPrefabPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaPreviewPrefabPath_ = s; return s; } } /** * string gachaPreviewPrefabPath = 10; * @return The bytes for gachaPreviewPrefabPath. */ @java.lang.Override public com.google.protobuf.ByteString getGachaPreviewPrefabPathBytes() { java.lang.Object ref = gachaPreviewPrefabPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaPreviewPrefabPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TENCOSTITEMID_FIELD_NUMBER = 11; private int tenCostItemId_; /** * uint32 tenCostItemId = 11; * @return The tenCostItemId. */ @java.lang.Override public int getTenCostItemId() { return tenCostItemId_; } public static final int TENCOSTITEMNUM_FIELD_NUMBER = 12; private int tenCostItemNum_; /** * uint32 tenCostItemNum = 12; * @return The tenCostItemNum. */ @java.lang.Override public int getTenCostItemNum() { return tenCostItemNum_; } public static final int LEFTGACHATIMES_FIELD_NUMBER = 13; private int leftGachaTimes_; /** * uint32 leftGachaTimes = 13; * @return The leftGachaTimes. */ @java.lang.Override public int getLeftGachaTimes() { return leftGachaTimes_; } public static final int GACHATIMESLIMIT_FIELD_NUMBER = 14; private int gachaTimesLimit_; /** * uint32 gachaTimesLimit = 14; * @return The gachaTimesLimit. */ @java.lang.Override public int getGachaTimesLimit() { return gachaTimesLimit_; } public static final int GACHASORTID_FIELD_NUMBER = 15; private int gachaSortId_; /** * uint32 gachaSortId = 15; * @return The gachaSortId. */ @java.lang.Override public int getGachaSortId() { return gachaSortId_; } public static final int GACHAPROBURLOVERSEA_FIELD_NUMBER = 16; private volatile java.lang.Object gachaProbUrlOversea_; /** * string gachaProbUrlOversea = 16; * @return The gachaProbUrlOversea. */ @java.lang.Override public java.lang.String getGachaProbUrlOversea() { java.lang.Object ref = gachaProbUrlOversea_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaProbUrlOversea_ = s; return s; } } /** * string gachaProbUrlOversea = 16; * @return The bytes for gachaProbUrlOversea. */ @java.lang.Override public com.google.protobuf.ByteString getGachaProbUrlOverseaBytes() { java.lang.Object ref = gachaProbUrlOversea_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaProbUrlOversea_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GACHARECORDURLOVERSEA_FIELD_NUMBER = 17; private volatile java.lang.Object gachaRecordUrlOversea_; /** * string gachaRecordUrlOversea = 17; * @return The gachaRecordUrlOversea. */ @java.lang.Override public java.lang.String getGachaRecordUrlOversea() { java.lang.Object ref = gachaRecordUrlOversea_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaRecordUrlOversea_ = s; return s; } } /** * string gachaRecordUrlOversea = 17; * @return The bytes for gachaRecordUrlOversea. */ @java.lang.Override public com.google.protobuf.ByteString getGachaRecordUrlOverseaBytes() { java.lang.Object ref = gachaRecordUrlOversea_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaRecordUrlOversea_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GACHAUPINFOLIST_FIELD_NUMBER = 18; private java.util.List gachaUpInfoList_; /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ @java.lang.Override public java.util.List getGachaUpInfoListList() { return gachaUpInfoList_; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ @java.lang.Override public java.util.List getGachaUpInfoListOrBuilderList() { return gachaUpInfoList_; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ @java.lang.Override public int getGachaUpInfoListCount() { return gachaUpInfoList_.size(); } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ @java.lang.Override public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { return gachaUpInfoList_.get(index); } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ @java.lang.Override public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( int index) { return gachaUpInfoList_.get(index); } public static final int GACHATITLEPATH_FIELD_NUMBER = 19; private volatile java.lang.Object gachaTitlePath_; /** * string gachaTitlePath = 19; * @return The gachaTitlePath. */ @java.lang.Override public java.lang.String getGachaTitlePath() { java.lang.Object ref = gachaTitlePath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaTitlePath_ = s; return s; } } /** * string gachaTitlePath = 19; * @return The bytes for gachaTitlePath. */ @java.lang.Override public com.google.protobuf.ByteString getGachaTitlePathBytes() { java.lang.Object ref = gachaTitlePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaTitlePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAINNAMEID_FIELD_NUMBER = 20; private com.google.protobuf.Internal.IntList mainNameId_; /** * repeated uint32 mainNameId = 20; * @return A list containing the mainNameId. */ @java.lang.Override public java.util.List getMainNameIdList() { return mainNameId_; } /** * repeated uint32 mainNameId = 20; * @return The count of mainNameId. */ public int getMainNameIdCount() { return mainNameId_.size(); } /** * repeated uint32 mainNameId = 20; * @param index The index of the element to return. * @return The mainNameId at the given index. */ public int getMainNameId(int index) { return mainNameId_.getInt(index); } private int mainNameIdMemoizedSerializedSize = -1; public static final int SUBNAMEID_FIELD_NUMBER = 21; private com.google.protobuf.Internal.IntList subNameId_; /** * repeated uint32 subNameId = 21; * @return A list containing the subNameId. */ @java.lang.Override public java.util.List getSubNameIdList() { return subNameId_; } /** * repeated uint32 subNameId = 21; * @return The count of subNameId. */ public int getSubNameIdCount() { return subNameId_.size(); } /** * repeated uint32 subNameId = 21; * @param index The index of the element to return. * @return The subNameId at the given index. */ public int getSubNameId(int index) { return subNameId_.getInt(index); } private int subNameIdMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (gachaType_ != 0) { output.writeUInt32(1, gachaType_); } if (scheduleId_ != 0) { output.writeUInt32(2, scheduleId_); } if (beginTime_ != 0) { output.writeUInt32(3, beginTime_); } if (endTime_ != 0) { output.writeUInt32(4, endTime_); } if (costItemId_ != 0) { output.writeUInt32(5, costItemId_); } if (costItemNum_ != 0) { output.writeUInt32(6, costItemNum_); } if (!getGachaPrefabPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gachaPrefabPath_); } if (!getGachaProbUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gachaProbUrl_); } if (!getGachaRecordUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, gachaRecordUrl_); } if (!getGachaPreviewPrefabPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, gachaPreviewPrefabPath_); } if (tenCostItemId_ != 0) { output.writeUInt32(11, tenCostItemId_); } if (tenCostItemNum_ != 0) { output.writeUInt32(12, tenCostItemNum_); } if (leftGachaTimes_ != 0) { output.writeUInt32(13, leftGachaTimes_); } if (gachaTimesLimit_ != 0) { output.writeUInt32(14, gachaTimesLimit_); } if (gachaSortId_ != 0) { output.writeUInt32(15, gachaSortId_); } if (!getGachaProbUrlOverseaBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, gachaProbUrlOversea_); } if (!getGachaRecordUrlOverseaBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, gachaRecordUrlOversea_); } for (int i = 0; i < gachaUpInfoList_.size(); i++) { output.writeMessage(18, gachaUpInfoList_.get(i)); } if (!getGachaTitlePathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, gachaTitlePath_); } if (getMainNameIdList().size() > 0) { output.writeUInt32NoTag(162); output.writeUInt32NoTag(mainNameIdMemoizedSerializedSize); } for (int i = 0; i < mainNameId_.size(); i++) { output.writeUInt32NoTag(mainNameId_.getInt(i)); } if (getSubNameIdList().size() > 0) { output.writeUInt32NoTag(170); output.writeUInt32NoTag(subNameIdMemoizedSerializedSize); } for (int i = 0; i < subNameId_.size(); i++) { output.writeUInt32NoTag(subNameId_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (gachaType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gachaType_); } if (scheduleId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, scheduleId_); } if (beginTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, beginTime_); } if (endTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, endTime_); } if (costItemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, costItemId_); } if (costItemNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, costItemNum_); } if (!getGachaPrefabPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gachaPrefabPath_); } if (!getGachaProbUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gachaProbUrl_); } if (!getGachaRecordUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, gachaRecordUrl_); } if (!getGachaPreviewPrefabPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, gachaPreviewPrefabPath_); } if (tenCostItemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, tenCostItemId_); } if (tenCostItemNum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, tenCostItemNum_); } if (leftGachaTimes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, leftGachaTimes_); } if (gachaTimesLimit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(14, gachaTimesLimit_); } if (gachaSortId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(15, gachaSortId_); } if (!getGachaProbUrlOverseaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, gachaProbUrlOversea_); } if (!getGachaRecordUrlOverseaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, gachaRecordUrlOversea_); } for (int i = 0; i < gachaUpInfoList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, gachaUpInfoList_.get(i)); } if (!getGachaTitlePathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, gachaTitlePath_); } { int dataSize = 0; for (int i = 0; i < mainNameId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(mainNameId_.getInt(i)); } size += dataSize; if (!getMainNameIdList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } mainNameIdMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < subNameId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(subNameId_.getInt(i)); } size += dataSize; if (!getSubNameIdList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } subNameIdMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo)) { return super.equals(obj); } emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo other = (emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo) obj; if (getGachaType() != other.getGachaType()) return false; if (getScheduleId() != other.getScheduleId()) return false; if (getBeginTime() != other.getBeginTime()) return false; if (getEndTime() != other.getEndTime()) return false; if (getCostItemId() != other.getCostItemId()) return false; if (getCostItemNum() != other.getCostItemNum()) return false; if (!getGachaPrefabPath() .equals(other.getGachaPrefabPath())) return false; if (!getGachaProbUrl() .equals(other.getGachaProbUrl())) return false; if (!getGachaRecordUrl() .equals(other.getGachaRecordUrl())) return false; if (!getGachaPreviewPrefabPath() .equals(other.getGachaPreviewPrefabPath())) return false; if (getTenCostItemId() != other.getTenCostItemId()) return false; if (getTenCostItemNum() != other.getTenCostItemNum()) return false; if (getLeftGachaTimes() != other.getLeftGachaTimes()) return false; if (getGachaTimesLimit() != other.getGachaTimesLimit()) return false; if (getGachaSortId() != other.getGachaSortId()) return false; if (!getGachaProbUrlOversea() .equals(other.getGachaProbUrlOversea())) return false; if (!getGachaRecordUrlOversea() .equals(other.getGachaRecordUrlOversea())) return false; if (!getGachaUpInfoListList() .equals(other.getGachaUpInfoListList())) return false; if (!getGachaTitlePath() .equals(other.getGachaTitlePath())) return false; if (!getMainNameIdList() .equals(other.getMainNameIdList())) return false; if (!getSubNameIdList() .equals(other.getSubNameIdList())) 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) + GACHATYPE_FIELD_NUMBER; hash = (53 * hash) + getGachaType(); hash = (37 * hash) + SCHEDULEID_FIELD_NUMBER; hash = (53 * hash) + getScheduleId(); hash = (37 * hash) + BEGINTIME_FIELD_NUMBER; hash = (53 * hash) + getBeginTime(); hash = (37 * hash) + ENDTIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime(); hash = (37 * hash) + COSTITEMID_FIELD_NUMBER; hash = (53 * hash) + getCostItemId(); hash = (37 * hash) + COSTITEMNUM_FIELD_NUMBER; hash = (53 * hash) + getCostItemNum(); hash = (37 * hash) + GACHAPREFABPATH_FIELD_NUMBER; hash = (53 * hash) + getGachaPrefabPath().hashCode(); hash = (37 * hash) + GACHAPROBURL_FIELD_NUMBER; hash = (53 * hash) + getGachaProbUrl().hashCode(); hash = (37 * hash) + GACHARECORDURL_FIELD_NUMBER; hash = (53 * hash) + getGachaRecordUrl().hashCode(); hash = (37 * hash) + GACHAPREVIEWPREFABPATH_FIELD_NUMBER; hash = (53 * hash) + getGachaPreviewPrefabPath().hashCode(); hash = (37 * hash) + TENCOSTITEMID_FIELD_NUMBER; hash = (53 * hash) + getTenCostItemId(); hash = (37 * hash) + TENCOSTITEMNUM_FIELD_NUMBER; hash = (53 * hash) + getTenCostItemNum(); hash = (37 * hash) + LEFTGACHATIMES_FIELD_NUMBER; hash = (53 * hash) + getLeftGachaTimes(); hash = (37 * hash) + GACHATIMESLIMIT_FIELD_NUMBER; hash = (53 * hash) + getGachaTimesLimit(); hash = (37 * hash) + GACHASORTID_FIELD_NUMBER; hash = (53 * hash) + getGachaSortId(); hash = (37 * hash) + GACHAPROBURLOVERSEA_FIELD_NUMBER; hash = (53 * hash) + getGachaProbUrlOversea().hashCode(); hash = (37 * hash) + GACHARECORDURLOVERSEA_FIELD_NUMBER; hash = (53 * hash) + getGachaRecordUrlOversea().hashCode(); if (getGachaUpInfoListCount() > 0) { hash = (37 * hash) + GACHAUPINFOLIST_FIELD_NUMBER; hash = (53 * hash) + getGachaUpInfoListList().hashCode(); } hash = (37 * hash) + GACHATITLEPATH_FIELD_NUMBER; hash = (53 * hash) + getGachaTitlePath().hashCode(); if (getMainNameIdCount() > 0) { hash = (37 * hash) + MAINNAMEID_FIELD_NUMBER; hash = (53 * hash) + getMainNameIdList().hashCode(); } if (getSubNameIdCount() > 0) { hash = (37 * hash) + SUBNAMEID_FIELD_NUMBER; hash = (53 * hash) + getSubNameIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo 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.GachaInfoOuterClass.GachaInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo 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.GachaInfoOuterClass.GachaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo 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.GachaInfoOuterClass.GachaInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo 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.GachaInfoOuterClass.GachaInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo 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.GachaInfoOuterClass.GachaInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code GachaInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:GachaInfo) emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.class, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder.class); } // Construct using emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGachaUpInfoListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); gachaType_ = 0; scheduleId_ = 0; beginTime_ = 0; endTime_ = 0; costItemId_ = 0; costItemNum_ = 0; gachaPrefabPath_ = ""; gachaProbUrl_ = ""; gachaRecordUrl_ = ""; gachaPreviewPrefabPath_ = ""; tenCostItemId_ = 0; tenCostItemNum_ = 0; leftGachaTimes_ = 0; gachaTimesLimit_ = 0; gachaSortId_ = 0; gachaProbUrlOversea_ = ""; gachaRecordUrlOversea_ = ""; if (gachaUpInfoListBuilder_ == null) { gachaUpInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { gachaUpInfoListBuilder_.clear(); } gachaTitlePath_ = ""; mainNameId_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); subNameId_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.GachaInfoOuterClass.internal_static_GachaInfo_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getDefaultInstanceForType() { return emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo build() { emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo buildPartial() { emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo result = new emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo(this); int from_bitField0_ = bitField0_; result.gachaType_ = gachaType_; result.scheduleId_ = scheduleId_; result.beginTime_ = beginTime_; result.endTime_ = endTime_; result.costItemId_ = costItemId_; result.costItemNum_ = costItemNum_; result.gachaPrefabPath_ = gachaPrefabPath_; result.gachaProbUrl_ = gachaProbUrl_; result.gachaRecordUrl_ = gachaRecordUrl_; result.gachaPreviewPrefabPath_ = gachaPreviewPrefabPath_; result.tenCostItemId_ = tenCostItemId_; result.tenCostItemNum_ = tenCostItemNum_; result.leftGachaTimes_ = leftGachaTimes_; result.gachaTimesLimit_ = gachaTimesLimit_; result.gachaSortId_ = gachaSortId_; result.gachaProbUrlOversea_ = gachaProbUrlOversea_; result.gachaRecordUrlOversea_ = gachaRecordUrlOversea_; if (gachaUpInfoListBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { gachaUpInfoList_ = java.util.Collections.unmodifiableList(gachaUpInfoList_); bitField0_ = (bitField0_ & ~0x00000001); } result.gachaUpInfoList_ = gachaUpInfoList_; } else { result.gachaUpInfoList_ = gachaUpInfoListBuilder_.build(); } result.gachaTitlePath_ = gachaTitlePath_; if (((bitField0_ & 0x00000002) != 0)) { mainNameId_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.mainNameId_ = mainNameId_; if (((bitField0_ & 0x00000004) != 0)) { subNameId_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.subNameId_ = subNameId_; 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.GachaInfoOuterClass.GachaInfo) { return mergeFrom((emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo other) { if (other == emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()) return this; if (other.getGachaType() != 0) { setGachaType(other.getGachaType()); } if (other.getScheduleId() != 0) { setScheduleId(other.getScheduleId()); } if (other.getBeginTime() != 0) { setBeginTime(other.getBeginTime()); } if (other.getEndTime() != 0) { setEndTime(other.getEndTime()); } if (other.getCostItemId() != 0) { setCostItemId(other.getCostItemId()); } if (other.getCostItemNum() != 0) { setCostItemNum(other.getCostItemNum()); } if (!other.getGachaPrefabPath().isEmpty()) { gachaPrefabPath_ = other.gachaPrefabPath_; onChanged(); } if (!other.getGachaProbUrl().isEmpty()) { gachaProbUrl_ = other.gachaProbUrl_; onChanged(); } if (!other.getGachaRecordUrl().isEmpty()) { gachaRecordUrl_ = other.gachaRecordUrl_; onChanged(); } if (!other.getGachaPreviewPrefabPath().isEmpty()) { gachaPreviewPrefabPath_ = other.gachaPreviewPrefabPath_; onChanged(); } if (other.getTenCostItemId() != 0) { setTenCostItemId(other.getTenCostItemId()); } if (other.getTenCostItemNum() != 0) { setTenCostItemNum(other.getTenCostItemNum()); } if (other.getLeftGachaTimes() != 0) { setLeftGachaTimes(other.getLeftGachaTimes()); } if (other.getGachaTimesLimit() != 0) { setGachaTimesLimit(other.getGachaTimesLimit()); } if (other.getGachaSortId() != 0) { setGachaSortId(other.getGachaSortId()); } if (!other.getGachaProbUrlOversea().isEmpty()) { gachaProbUrlOversea_ = other.gachaProbUrlOversea_; onChanged(); } if (!other.getGachaRecordUrlOversea().isEmpty()) { gachaRecordUrlOversea_ = other.gachaRecordUrlOversea_; onChanged(); } if (gachaUpInfoListBuilder_ == null) { if (!other.gachaUpInfoList_.isEmpty()) { if (gachaUpInfoList_.isEmpty()) { gachaUpInfoList_ = other.gachaUpInfoList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.addAll(other.gachaUpInfoList_); } onChanged(); } } else { if (!other.gachaUpInfoList_.isEmpty()) { if (gachaUpInfoListBuilder_.isEmpty()) { gachaUpInfoListBuilder_.dispose(); gachaUpInfoListBuilder_ = null; gachaUpInfoList_ = other.gachaUpInfoList_; bitField0_ = (bitField0_ & ~0x00000001); gachaUpInfoListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGachaUpInfoListFieldBuilder() : null; } else { gachaUpInfoListBuilder_.addAllMessages(other.gachaUpInfoList_); } } } if (!other.getGachaTitlePath().isEmpty()) { gachaTitlePath_ = other.gachaTitlePath_; onChanged(); } if (!other.mainNameId_.isEmpty()) { if (mainNameId_.isEmpty()) { mainNameId_ = other.mainNameId_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMainNameIdIsMutable(); mainNameId_.addAll(other.mainNameId_); } onChanged(); } if (!other.subNameId_.isEmpty()) { if (subNameId_.isEmpty()) { subNameId_ = other.subNameId_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSubNameIdIsMutable(); subNameId_.addAll(other.subNameId_); } onChanged(); } 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.GachaInfoOuterClass.GachaInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int gachaType_ ; /** * uint32 gachaType = 1; * @return The gachaType. */ @java.lang.Override public int getGachaType() { return gachaType_; } /** * uint32 gachaType = 1; * @param value The gachaType to set. * @return This builder for chaining. */ public Builder setGachaType(int value) { gachaType_ = value; onChanged(); return this; } /** * uint32 gachaType = 1; * @return This builder for chaining. */ public Builder clearGachaType() { gachaType_ = 0; onChanged(); return this; } private int scheduleId_ ; /** * uint32 scheduleId = 2; * @return The scheduleId. */ @java.lang.Override public int getScheduleId() { return scheduleId_; } /** * uint32 scheduleId = 2; * @param value The scheduleId to set. * @return This builder for chaining. */ public Builder setScheduleId(int value) { scheduleId_ = value; onChanged(); return this; } /** * uint32 scheduleId = 2; * @return This builder for chaining. */ public Builder clearScheduleId() { scheduleId_ = 0; onChanged(); return this; } private int beginTime_ ; /** * uint32 beginTime = 3; * @return The beginTime. */ @java.lang.Override public int getBeginTime() { return beginTime_; } /** * uint32 beginTime = 3; * @param value The beginTime to set. * @return This builder for chaining. */ public Builder setBeginTime(int value) { beginTime_ = value; onChanged(); return this; } /** * uint32 beginTime = 3; * @return This builder for chaining. */ public Builder clearBeginTime() { beginTime_ = 0; onChanged(); return this; } private int endTime_ ; /** * uint32 endTime = 4; * @return The endTime. */ @java.lang.Override public int getEndTime() { return endTime_; } /** * uint32 endTime = 4; * @param value The endTime to set. * @return This builder for chaining. */ public Builder setEndTime(int value) { endTime_ = value; onChanged(); return this; } /** * uint32 endTime = 4; * @return This builder for chaining. */ public Builder clearEndTime() { endTime_ = 0; onChanged(); return this; } private int costItemId_ ; /** * uint32 costItemId = 5; * @return The costItemId. */ @java.lang.Override public int getCostItemId() { return costItemId_; } /** * uint32 costItemId = 5; * @param value The costItemId to set. * @return This builder for chaining. */ public Builder setCostItemId(int value) { costItemId_ = value; onChanged(); return this; } /** * uint32 costItemId = 5; * @return This builder for chaining. */ public Builder clearCostItemId() { costItemId_ = 0; onChanged(); return this; } private int costItemNum_ ; /** * uint32 costItemNum = 6; * @return The costItemNum. */ @java.lang.Override public int getCostItemNum() { return costItemNum_; } /** * uint32 costItemNum = 6; * @param value The costItemNum to set. * @return This builder for chaining. */ public Builder setCostItemNum(int value) { costItemNum_ = value; onChanged(); return this; } /** * uint32 costItemNum = 6; * @return This builder for chaining. */ public Builder clearCostItemNum() { costItemNum_ = 0; onChanged(); return this; } private java.lang.Object gachaPrefabPath_ = ""; /** * string gachaPrefabPath = 7; * @return The gachaPrefabPath. */ public java.lang.String getGachaPrefabPath() { java.lang.Object ref = gachaPrefabPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaPrefabPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaPrefabPath = 7; * @return The bytes for gachaPrefabPath. */ public com.google.protobuf.ByteString getGachaPrefabPathBytes() { java.lang.Object ref = gachaPrefabPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaPrefabPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaPrefabPath = 7; * @param value The gachaPrefabPath to set. * @return This builder for chaining. */ public Builder setGachaPrefabPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaPrefabPath_ = value; onChanged(); return this; } /** * string gachaPrefabPath = 7; * @return This builder for chaining. */ public Builder clearGachaPrefabPath() { gachaPrefabPath_ = getDefaultInstance().getGachaPrefabPath(); onChanged(); return this; } /** * string gachaPrefabPath = 7; * @param value The bytes for gachaPrefabPath to set. * @return This builder for chaining. */ public Builder setGachaPrefabPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaPrefabPath_ = value; onChanged(); return this; } private java.lang.Object gachaProbUrl_ = ""; /** * string gachaProbUrl = 8; * @return The gachaProbUrl. */ public java.lang.String getGachaProbUrl() { java.lang.Object ref = gachaProbUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaProbUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaProbUrl = 8; * @return The bytes for gachaProbUrl. */ public com.google.protobuf.ByteString getGachaProbUrlBytes() { java.lang.Object ref = gachaProbUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaProbUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaProbUrl = 8; * @param value The gachaProbUrl to set. * @return This builder for chaining. */ public Builder setGachaProbUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaProbUrl_ = value; onChanged(); return this; } /** * string gachaProbUrl = 8; * @return This builder for chaining. */ public Builder clearGachaProbUrl() { gachaProbUrl_ = getDefaultInstance().getGachaProbUrl(); onChanged(); return this; } /** * string gachaProbUrl = 8; * @param value The bytes for gachaProbUrl to set. * @return This builder for chaining. */ public Builder setGachaProbUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaProbUrl_ = value; onChanged(); return this; } private java.lang.Object gachaRecordUrl_ = ""; /** * string gachaRecordUrl = 9; * @return The gachaRecordUrl. */ public java.lang.String getGachaRecordUrl() { java.lang.Object ref = gachaRecordUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaRecordUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaRecordUrl = 9; * @return The bytes for gachaRecordUrl. */ public com.google.protobuf.ByteString getGachaRecordUrlBytes() { java.lang.Object ref = gachaRecordUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaRecordUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaRecordUrl = 9; * @param value The gachaRecordUrl to set. * @return This builder for chaining. */ public Builder setGachaRecordUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaRecordUrl_ = value; onChanged(); return this; } /** * string gachaRecordUrl = 9; * @return This builder for chaining. */ public Builder clearGachaRecordUrl() { gachaRecordUrl_ = getDefaultInstance().getGachaRecordUrl(); onChanged(); return this; } /** * string gachaRecordUrl = 9; * @param value The bytes for gachaRecordUrl to set. * @return This builder for chaining. */ public Builder setGachaRecordUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaRecordUrl_ = value; onChanged(); return this; } private java.lang.Object gachaPreviewPrefabPath_ = ""; /** * string gachaPreviewPrefabPath = 10; * @return The gachaPreviewPrefabPath. */ public java.lang.String getGachaPreviewPrefabPath() { java.lang.Object ref = gachaPreviewPrefabPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaPreviewPrefabPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaPreviewPrefabPath = 10; * @return The bytes for gachaPreviewPrefabPath. */ public com.google.protobuf.ByteString getGachaPreviewPrefabPathBytes() { java.lang.Object ref = gachaPreviewPrefabPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaPreviewPrefabPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaPreviewPrefabPath = 10; * @param value The gachaPreviewPrefabPath to set. * @return This builder for chaining. */ public Builder setGachaPreviewPrefabPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaPreviewPrefabPath_ = value; onChanged(); return this; } /** * string gachaPreviewPrefabPath = 10; * @return This builder for chaining. */ public Builder clearGachaPreviewPrefabPath() { gachaPreviewPrefabPath_ = getDefaultInstance().getGachaPreviewPrefabPath(); onChanged(); return this; } /** * string gachaPreviewPrefabPath = 10; * @param value The bytes for gachaPreviewPrefabPath to set. * @return This builder for chaining. */ public Builder setGachaPreviewPrefabPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaPreviewPrefabPath_ = value; onChanged(); return this; } private int tenCostItemId_ ; /** * uint32 tenCostItemId = 11; * @return The tenCostItemId. */ @java.lang.Override public int getTenCostItemId() { return tenCostItemId_; } /** * uint32 tenCostItemId = 11; * @param value The tenCostItemId to set. * @return This builder for chaining. */ public Builder setTenCostItemId(int value) { tenCostItemId_ = value; onChanged(); return this; } /** * uint32 tenCostItemId = 11; * @return This builder for chaining. */ public Builder clearTenCostItemId() { tenCostItemId_ = 0; onChanged(); return this; } private int tenCostItemNum_ ; /** * uint32 tenCostItemNum = 12; * @return The tenCostItemNum. */ @java.lang.Override public int getTenCostItemNum() { return tenCostItemNum_; } /** * uint32 tenCostItemNum = 12; * @param value The tenCostItemNum to set. * @return This builder for chaining. */ public Builder setTenCostItemNum(int value) { tenCostItemNum_ = value; onChanged(); return this; } /** * uint32 tenCostItemNum = 12; * @return This builder for chaining. */ public Builder clearTenCostItemNum() { tenCostItemNum_ = 0; onChanged(); return this; } private int leftGachaTimes_ ; /** * uint32 leftGachaTimes = 13; * @return The leftGachaTimes. */ @java.lang.Override public int getLeftGachaTimes() { return leftGachaTimes_; } /** * uint32 leftGachaTimes = 13; * @param value The leftGachaTimes to set. * @return This builder for chaining. */ public Builder setLeftGachaTimes(int value) { leftGachaTimes_ = value; onChanged(); return this; } /** * uint32 leftGachaTimes = 13; * @return This builder for chaining. */ public Builder clearLeftGachaTimes() { leftGachaTimes_ = 0; onChanged(); return this; } private int gachaTimesLimit_ ; /** * uint32 gachaTimesLimit = 14; * @return The gachaTimesLimit. */ @java.lang.Override public int getGachaTimesLimit() { return gachaTimesLimit_; } /** * uint32 gachaTimesLimit = 14; * @param value The gachaTimesLimit to set. * @return This builder for chaining. */ public Builder setGachaTimesLimit(int value) { gachaTimesLimit_ = value; onChanged(); return this; } /** * uint32 gachaTimesLimit = 14; * @return This builder for chaining. */ public Builder clearGachaTimesLimit() { gachaTimesLimit_ = 0; onChanged(); return this; } private int gachaSortId_ ; /** * uint32 gachaSortId = 15; * @return The gachaSortId. */ @java.lang.Override public int getGachaSortId() { return gachaSortId_; } /** * uint32 gachaSortId = 15; * @param value The gachaSortId to set. * @return This builder for chaining. */ public Builder setGachaSortId(int value) { gachaSortId_ = value; onChanged(); return this; } /** * uint32 gachaSortId = 15; * @return This builder for chaining. */ public Builder clearGachaSortId() { gachaSortId_ = 0; onChanged(); return this; } private java.lang.Object gachaProbUrlOversea_ = ""; /** * string gachaProbUrlOversea = 16; * @return The gachaProbUrlOversea. */ public java.lang.String getGachaProbUrlOversea() { java.lang.Object ref = gachaProbUrlOversea_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaProbUrlOversea_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaProbUrlOversea = 16; * @return The bytes for gachaProbUrlOversea. */ public com.google.protobuf.ByteString getGachaProbUrlOverseaBytes() { java.lang.Object ref = gachaProbUrlOversea_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaProbUrlOversea_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaProbUrlOversea = 16; * @param value The gachaProbUrlOversea to set. * @return This builder for chaining. */ public Builder setGachaProbUrlOversea( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaProbUrlOversea_ = value; onChanged(); return this; } /** * string gachaProbUrlOversea = 16; * @return This builder for chaining. */ public Builder clearGachaProbUrlOversea() { gachaProbUrlOversea_ = getDefaultInstance().getGachaProbUrlOversea(); onChanged(); return this; } /** * string gachaProbUrlOversea = 16; * @param value The bytes for gachaProbUrlOversea to set. * @return This builder for chaining. */ public Builder setGachaProbUrlOverseaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaProbUrlOversea_ = value; onChanged(); return this; } private java.lang.Object gachaRecordUrlOversea_ = ""; /** * string gachaRecordUrlOversea = 17; * @return The gachaRecordUrlOversea. */ public java.lang.String getGachaRecordUrlOversea() { java.lang.Object ref = gachaRecordUrlOversea_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaRecordUrlOversea_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaRecordUrlOversea = 17; * @return The bytes for gachaRecordUrlOversea. */ public com.google.protobuf.ByteString getGachaRecordUrlOverseaBytes() { java.lang.Object ref = gachaRecordUrlOversea_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaRecordUrlOversea_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaRecordUrlOversea = 17; * @param value The gachaRecordUrlOversea to set. * @return This builder for chaining. */ public Builder setGachaRecordUrlOversea( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaRecordUrlOversea_ = value; onChanged(); return this; } /** * string gachaRecordUrlOversea = 17; * @return This builder for chaining. */ public Builder clearGachaRecordUrlOversea() { gachaRecordUrlOversea_ = getDefaultInstance().getGachaRecordUrlOversea(); onChanged(); return this; } /** * string gachaRecordUrlOversea = 17; * @param value The bytes for gachaRecordUrlOversea to set. * @return This builder for chaining. */ public Builder setGachaRecordUrlOverseaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaRecordUrlOversea_ = value; onChanged(); return this; } private java.util.List gachaUpInfoList_ = java.util.Collections.emptyList(); private void ensureGachaUpInfoListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { gachaUpInfoList_ = new java.util.ArrayList(gachaUpInfoList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> gachaUpInfoListBuilder_; /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public java.util.List getGachaUpInfoListList() { if (gachaUpInfoListBuilder_ == null) { return java.util.Collections.unmodifiableList(gachaUpInfoList_); } else { return gachaUpInfoListBuilder_.getMessageList(); } } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public int getGachaUpInfoListCount() { if (gachaUpInfoListBuilder_ == null) { return gachaUpInfoList_.size(); } else { return gachaUpInfoListBuilder_.getCount(); } } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { if (gachaUpInfoListBuilder_ == null) { return gachaUpInfoList_.get(index); } else { return gachaUpInfoListBuilder_.getMessage(index); } } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder setGachaUpInfoList( int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { if (gachaUpInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.set(index, value); onChanged(); } else { gachaUpInfoListBuilder_.setMessage(index, value); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder setGachaUpInfoList( int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { if (gachaUpInfoListBuilder_ == null) { ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.set(index, builderForValue.build()); onChanged(); } else { gachaUpInfoListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder addGachaUpInfoList(emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { if (gachaUpInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.add(value); onChanged(); } else { gachaUpInfoListBuilder_.addMessage(value); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder addGachaUpInfoList( int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo value) { if (gachaUpInfoListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.add(index, value); onChanged(); } else { gachaUpInfoListBuilder_.addMessage(index, value); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder addGachaUpInfoList( emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { if (gachaUpInfoListBuilder_ == null) { ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.add(builderForValue.build()); onChanged(); } else { gachaUpInfoListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder addGachaUpInfoList( int index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder builderForValue) { if (gachaUpInfoListBuilder_ == null) { ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.add(index, builderForValue.build()); onChanged(); } else { gachaUpInfoListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder addAllGachaUpInfoList( java.lang.Iterable values) { if (gachaUpInfoListBuilder_ == null) { ensureGachaUpInfoListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, gachaUpInfoList_); onChanged(); } else { gachaUpInfoListBuilder_.addAllMessages(values); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder clearGachaUpInfoList() { if (gachaUpInfoListBuilder_ == null) { gachaUpInfoList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { gachaUpInfoListBuilder_.clear(); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public Builder removeGachaUpInfoList(int index) { if (gachaUpInfoListBuilder_ == null) { ensureGachaUpInfoListIsMutable(); gachaUpInfoList_.remove(index); onChanged(); } else { gachaUpInfoListBuilder_.remove(index); } return this; } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder getGachaUpInfoListBuilder( int index) { return getGachaUpInfoListFieldBuilder().getBuilder(index); } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( int index) { if (gachaUpInfoListBuilder_ == null) { return gachaUpInfoList_.get(index); } else { return gachaUpInfoListBuilder_.getMessageOrBuilder(index); } } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public java.util.List getGachaUpInfoListOrBuilderList() { if (gachaUpInfoListBuilder_ != null) { return gachaUpInfoListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(gachaUpInfoList_); } } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder() { return getGachaUpInfoListFieldBuilder().addBuilder( emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder( int index) { return getGachaUpInfoListFieldBuilder().addBuilder( index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); } /** * repeated .GachaUpInfo gachaUpInfoList = 18; */ public java.util.List getGachaUpInfoListBuilderList() { return getGachaUpInfoListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder> getGachaUpInfoListFieldBuilder() { if (gachaUpInfoListBuilder_ == null) { gachaUpInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder>( gachaUpInfoList_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); gachaUpInfoList_ = null; } return gachaUpInfoListBuilder_; } private java.lang.Object gachaTitlePath_ = ""; /** * string gachaTitlePath = 19; * @return The gachaTitlePath. */ public java.lang.String getGachaTitlePath() { java.lang.Object ref = gachaTitlePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gachaTitlePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string gachaTitlePath = 19; * @return The bytes for gachaTitlePath. */ public com.google.protobuf.ByteString getGachaTitlePathBytes() { java.lang.Object ref = gachaTitlePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gachaTitlePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string gachaTitlePath = 19; * @param value The gachaTitlePath to set. * @return This builder for chaining. */ public Builder setGachaTitlePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gachaTitlePath_ = value; onChanged(); return this; } /** * string gachaTitlePath = 19; * @return This builder for chaining. */ public Builder clearGachaTitlePath() { gachaTitlePath_ = getDefaultInstance().getGachaTitlePath(); onChanged(); return this; } /** * string gachaTitlePath = 19; * @param value The bytes for gachaTitlePath to set. * @return This builder for chaining. */ public Builder setGachaTitlePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gachaTitlePath_ = value; onChanged(); return this; } private com.google.protobuf.Internal.IntList mainNameId_ = emptyIntList(); private void ensureMainNameIdIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { mainNameId_ = mutableCopy(mainNameId_); bitField0_ |= 0x00000002; } } /** * repeated uint32 mainNameId = 20; * @return A list containing the mainNameId. */ public java.util.List getMainNameIdList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(mainNameId_) : mainNameId_; } /** * repeated uint32 mainNameId = 20; * @return The count of mainNameId. */ public int getMainNameIdCount() { return mainNameId_.size(); } /** * repeated uint32 mainNameId = 20; * @param index The index of the element to return. * @return The mainNameId at the given index. */ public int getMainNameId(int index) { return mainNameId_.getInt(index); } /** * repeated uint32 mainNameId = 20; * @param index The index to set the value at. * @param value The mainNameId to set. * @return This builder for chaining. */ public Builder setMainNameId( int index, int value) { ensureMainNameIdIsMutable(); mainNameId_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 mainNameId = 20; * @param value The mainNameId to add. * @return This builder for chaining. */ public Builder addMainNameId(int value) { ensureMainNameIdIsMutable(); mainNameId_.addInt(value); onChanged(); return this; } /** * repeated uint32 mainNameId = 20; * @param values The mainNameId to add. * @return This builder for chaining. */ public Builder addAllMainNameId( java.lang.Iterable values) { ensureMainNameIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mainNameId_); onChanged(); return this; } /** * repeated uint32 mainNameId = 20; * @return This builder for chaining. */ public Builder clearMainNameId() { mainNameId_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Internal.IntList subNameId_ = emptyIntList(); private void ensureSubNameIdIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { subNameId_ = mutableCopy(subNameId_); bitField0_ |= 0x00000004; } } /** * repeated uint32 subNameId = 21; * @return A list containing the subNameId. */ public java.util.List getSubNameIdList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(subNameId_) : subNameId_; } /** * repeated uint32 subNameId = 21; * @return The count of subNameId. */ public int getSubNameIdCount() { return subNameId_.size(); } /** * repeated uint32 subNameId = 21; * @param index The index of the element to return. * @return The subNameId at the given index. */ public int getSubNameId(int index) { return subNameId_.getInt(index); } /** * repeated uint32 subNameId = 21; * @param index The index to set the value at. * @param value The subNameId to set. * @return This builder for chaining. */ public Builder setSubNameId( int index, int value) { ensureSubNameIdIsMutable(); subNameId_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 subNameId = 21; * @param value The subNameId to add. * @return This builder for chaining. */ public Builder addSubNameId(int value) { ensureSubNameIdIsMutable(); subNameId_.addInt(value); onChanged(); return this; } /** * repeated uint32 subNameId = 21; * @param values The subNameId to add. * @return This builder for chaining. */ public Builder addAllSubNameId( java.lang.Iterable values) { ensureSubNameIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subNameId_); onChanged(); return this; } /** * repeated uint32 subNameId = 21; * @return This builder for chaining. */ public Builder clearSubNameId() { subNameId_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); 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:GachaInfo) } // @@protoc_insertion_point(class_scope:GachaInfo) private static final emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo(); } public static emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GachaInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GachaInfo(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.GachaInfoOuterClass.GachaInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_GachaInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GachaInfo_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\017GachaInfo.proto\032\021GachaUpInfo.proto\"\375\003\n" + "\tGachaInfo\022\021\n\tgachaType\030\001 \001(\r\022\022\n\nschedul" + "eId\030\002 \001(\r\022\021\n\tbeginTime\030\003 \001(\r\022\017\n\007endTime\030" + "\004 \001(\r\022\022\n\ncostItemId\030\005 \001(\r\022\023\n\013costItemNum" + "\030\006 \001(\r\022\027\n\017gachaPrefabPath\030\007 \001(\t\022\024\n\014gacha" + "ProbUrl\030\010 \001(\t\022\026\n\016gachaRecordUrl\030\t \001(\t\022\036\n" + "\026gachaPreviewPrefabPath\030\n \001(\t\022\025\n\rtenCost" + "ItemId\030\013 \001(\r\022\026\n\016tenCostItemNum\030\014 \001(\r\022\026\n\016" + "leftGachaTimes\030\r \001(\r\022\027\n\017gachaTimesLimit\030" + "\016 \001(\r\022\023\n\013gachaSortId\030\017 \001(\r\022\033\n\023gachaProbU" + "rlOversea\030\020 \001(\t\022\035\n\025gachaRecordUrlOversea" + "\030\021 \001(\t\022%\n\017gachaUpInfoList\030\022 \003(\0132\014.GachaU" + "pInfo\022\026\n\016gachaTitlePath\030\023 \001(\t\022\022\n\nmainNam" + "eId\030\024 \003(\r\022\021\n\tsubNameId\030\025 \003(\rB\033\n\031emu.gras" + "scutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.GachaUpInfoOuterClass.getDescriptor(), }); internal_static_GachaInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_GachaInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_GachaInfo_descriptor, new java.lang.String[] { "GachaType", "ScheduleId", "BeginTime", "EndTime", "CostItemId", "CostItemNum", "GachaPrefabPath", "GachaProbUrl", "GachaRecordUrl", "GachaPreviewPrefabPath", "TenCostItemId", "TenCostItemNum", "LeftGachaTimes", "GachaTimesLimit", "GachaSortId", "GachaProbUrlOversea", "GachaRecordUrlOversea", "GachaUpInfoList", "GachaTitlePath", "MainNameId", "SubNameId", }); emu.grasscutter.net.proto.GachaUpInfoOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }