diff --git a/src/main/java/club/joylink/rtss/controller/racetr/RacePaperController.java b/src/main/java/club/joylink/rtss/controller/racetr/RacePaperController.java index 3854a91c7..af6966011 100644 --- a/src/main/java/club/joylink/rtss/controller/racetr/RacePaperController.java +++ b/src/main/java/club/joylink/rtss/controller/racetr/RacePaperController.java @@ -6,6 +6,8 @@ import club.joylink.rtss.services.race.RacePaperService; import club.joylink.rtss.vo.AccountVO; import club.joylink.rtss.vo.client.PageVO; import club.joylink.rtss.vo.race.RacePaper.RacePaperCreateVO; +import club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO; +import club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO; import club.joylink.rtss.vo.race.RacePaper.RacePaperVO; import club.joylink.rtss.vo.race.RacePaperQueryVO; import org.springframework.beans.factory.annotation.Autowired; @@ -13,6 +15,7 @@ import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestAttribute; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -49,6 +52,21 @@ public class RacePaperController { return racePaperService.pageQuery(queryVO); } + @PostMapping("/{id}/config") + public void configSeting(@PathVariable("id") Long id, @RequestBody RacePaperModuleVO moduleVO, @RequestAttribute AccountVO user) { + this.racePaperService.configSeting(id, moduleVO, user); + } + + @GetMapping("/{id}") + public RacePaperDetailVO detail(@PathVariable("id") Long id) { + return this.racePaperService.detail(id); + } + + @PutMapping("/{id}/copy") + public void copy(@PathVariable("id") Long id, @RequestAttribute AccountVO user) { + this.racePaperService.copy(id, user); + } + /** * 删除 */ diff --git a/src/main/java/club/joylink/rtss/controller/racetr/RaceScoreRuleController.java b/src/main/java/club/joylink/rtss/controller/racetr/RaceScoreRuleController.java index f1e86fbb3..be51ccb8c 100644 --- a/src/main/java/club/joylink/rtss/controller/racetr/RaceScoreRuleController.java +++ b/src/main/java/club/joylink/rtss/controller/racetr/RaceScoreRuleController.java @@ -43,7 +43,7 @@ public class RaceScoreRuleController { this.scoreRuleService.editRule(ruleId, rule, user); } - @GetMapping(value = "/{id}", produces = {"application/json"}) + @GetMapping(value = "/{id}") public RaceScoringRuleVO detail(@PathVariable("id") Long id) { return this.scoreRuleService.detail(id); } diff --git a/src/main/java/club/joylink/rtss/dao/racetr/RacetrPaperDAO.java b/src/main/java/club/joylink/rtss/dao/racetr/RacetrPaperDAO.java index dbea8d3f6..dc2afed2a 100644 --- a/src/main/java/club/joylink/rtss/dao/racetr/RacetrPaperDAO.java +++ b/src/main/java/club/joylink/rtss/dao/racetr/RacetrPaperDAO.java @@ -19,7 +19,7 @@ import org.springframework.stereotype.Repository; public interface RacetrPaperDAO extends MyBatisBaseDao { @Select("") List pages(@Param("vo") RacePaperQueryVO vo); } \ No newline at end of file diff --git a/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaper.java b/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaper.java index 09526f7f7..e3e96dd88 100644 --- a/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaper.java +++ b/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaper.java @@ -23,6 +23,11 @@ public class RacetrPaper implements Serializable { */ private String desc; + /** + * 0=不支持;1=支持 + */ + private Boolean supportCopy; + /** * 赛季ID */ @@ -48,5 +53,10 @@ public class RacetrPaper implements Serializable { */ private LocalDateTime updateTime; + /** + * module配置 + */ + private byte[] configs; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaperExample.java b/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaperExample.java index 91f22ab2a..2e441298f 100644 --- a/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaperExample.java +++ b/src/main/java/club/joylink/rtss/entity/racetr/RacetrPaperExample.java @@ -325,6 +325,66 @@ public class RacetrPaperExample { return (Criteria) this; } + public Criteria andSupportCopyIsNull() { + addCriterion("support_copy is null"); + return (Criteria) this; + } + + public Criteria andSupportCopyIsNotNull() { + addCriterion("support_copy is not null"); + return (Criteria) this; + } + + public Criteria andSupportCopyEqualTo(Boolean value) { + addCriterion("support_copy =", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyNotEqualTo(Boolean value) { + addCriterion("support_copy <>", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyGreaterThan(Boolean value) { + addCriterion("support_copy >", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyGreaterThanOrEqualTo(Boolean value) { + addCriterion("support_copy >=", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyLessThan(Boolean value) { + addCriterion("support_copy <", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyLessThanOrEqualTo(Boolean value) { + addCriterion("support_copy <=", value, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyIn(List values) { + addCriterion("support_copy in", values, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyNotIn(List values) { + addCriterion("support_copy not in", values, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyBetween(Boolean value1, Boolean value2) { + addCriterion("support_copy between", value1, value2, "supportCopy"); + return (Criteria) this; + } + + public Criteria andSupportCopyNotBetween(Boolean value1, Boolean value2) { + addCriterion("support_copy not between", value1, value2, "supportCopy"); + return (Criteria) this; + } + public Criteria andSeasonIdIsNull() { addCriterion("season_id is null"); return (Criteria) this; diff --git a/src/main/java/club/joylink/rtss/services/race/RacePaperService.java b/src/main/java/club/joylink/rtss/services/race/RacePaperService.java index ff4bf9b96..df1c143a9 100644 --- a/src/main/java/club/joylink/rtss/services/race/RacePaperService.java +++ b/src/main/java/club/joylink/rtss/services/race/RacePaperService.java @@ -13,6 +13,8 @@ import club.joylink.rtss.vo.AccountVO; import club.joylink.rtss.vo.client.PageVO; import club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO; import club.joylink.rtss.vo.race.RacePaper.RacePaperCreateVO; +import club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO; +import club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO; import club.joylink.rtss.vo.race.RacePaper.RacePaperVO; import club.joylink.rtss.vo.race.RacePaperPageVO; import club.joylink.rtss.vo.race.RacePaperQueryVO; @@ -26,20 +28,23 @@ import java.util.List; import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; +import org.springframework.web.bind.annotation.RequestAttribute; @Service +@Slf4j public class RacePaperService extends RaceService { @Autowired private RacetrPaperDAO paperDAO; - @Autowired + /*@Autowired private ISysUserService iSysUserService; @Autowired - private RacetrModuleDAO moduleDAO; + private RacetrModuleDAO moduleDAO;*/ private RacetrPaper findId(Long id) { RacetrPaper rp = this.paperDAO.selectByPrimaryKey(id); @@ -57,6 +62,7 @@ public class RacePaperService extends RaceService { rp.setUpdateTime(now); rp.setCreatorId(user.getId()); rp.setUpdaterId(user.getId()); + rp.setSupportCopy(createVO.getSupportCopy()); this.paperDAO.insertSelective(rp); } @@ -67,6 +73,7 @@ public class RacePaperService extends RaceService { rp.setSeasonId(updateVO.getSeasonId()); rp.setUpdateTime(LocalDateTime.now()); rp.setUpdaterId(user.getId()); + rp.setSupportCopy(updateVO.getSupportCopy()); this.paperDAO.updateByPrimaryKey(rp); } @@ -89,6 +96,7 @@ public class RacePaperService extends RaceService { builder.setModifyInfo(modifyInfoVO); builder.setSeasonId(rp.getSeasonId()); builder.setSeasonName(Objects.isNull(rp.getSeasonName()) ? "" : rp.getSeasonName()); + builder.setSupportCopy(!Objects.isNull(rp.getSupportCopy()) && rp.getSupportCopy()); return builder.build(); } @@ -104,11 +112,58 @@ public class RacePaperService extends RaceService { } public void delete(long id) { - RacetrModuleExample moduleExample = new RacetrModuleExample(); - moduleExample.createCriteria().andPaperIdEqualTo(id); - List modules = this.moduleDAO.selectByExample(moduleExample); - BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(CollectionUtils.isEmpty(modules), - String.format("已被模块[%s]关联不能删除", modules.stream().map(RacetrModule::getCode).collect(Collectors.joining(",")))); +// RacetrModuleExample moduleExample = new RacetrModuleExample(); +// moduleExample.createCriteria().andPaperIdEqualTo(id); +// List modules = this.moduleDAO.selectByExample(moduleExample); +// BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(CollectionUtils.isEmpty(modules), +// String.format("已被模块[%s]关联不能删除", modules.stream().map(RacetrModule::getCode).collect(Collectors.joining(",")))); this.paperDAO.deleteByPrimaryKey(id); } + + public RacePaperDetailVO detail(Long id) { + RacePaperQueryVO query = new RacePaperQueryVO(); + query.setId(id); + List list = this.paperDAO.pages(query); + BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(!CollectionUtils.isEmpty(list), "未找到对应的试卷"); + RacePaperPageVO paper = list.get(0); + + RacePaperDetailVO.Builder vo = RacePaperDetailVO.newBuilder(); + vo.setId(paper.getId()); + vo.setName(paper.getName()); + vo.setDesc(paper.getDesc()); + vo.setSupportCopy(!Objects.isNull(paper.getSupportCopy()) && paper.getSupportCopy()); + vo.setModifyInfo(this.createModifyInfo(paper.getCreatorId(), paper.getCreatorName(), paper.getUpdaterId(), paper.getUpdaterName(), paper.getCreateTime(), paper.getUpdateTime())); + vo.setSeasonId(paper.getSeasonId()); + vo.setSeasonName(Objects.isNull(paper.getSeasonName()) ? "" : paper.getSeasonName()); + try { + RacePaperModuleVO moduleVO = RacePaperModuleVO.parseFrom(paper.getConfigs()); + vo.setModuleVo(moduleVO); + } catch (Exception e) { + log.error("试卷[{}][{}] 配置解析失败 msg:[{}]", paper.getName(), paper.getId(), e.getMessage()); + BusinessExceptionAssertEnum.DATA_ERROR.fail("数据配置解析失败"); + } + return vo.build(); + } + + public void configSeting(Long id, RacePaperModuleVO moduleVO, AccountVO user) { + RacetrPaper paper = this.findId(id); + paper.setUpdateTime(LocalDateTime.now()); + paper.setUpdaterId(user.getId()); + paper.setConfigs(moduleVO.toByteArray()); + this.paperDAO.updateByPrimaryKey(paper); + } + + public void copy(Long id, AccountVO user) { + RacetrPaper paper = this.findId(id); + BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(paper.getSupportCopy(), "此试卷不支持拷贝"); + LocalDateTime now = LocalDateTime.now(); + paper.setId(null); + paper.setName(String.format("%s_copy", paper.getName())); + paper.setSupportCopy(!Objects.isNull(paper.getSupportCopy()) && paper.getSupportCopy()); + paper.setCreatorId(user.getId()); + paper.setUpdaterId(user.getId()); + paper.setCreateTime(now); + paper.setUpdateTime(now); + this.paperDAO.insert(paper); + } } diff --git a/src/main/java/club/joylink/rtss/services/race/RaceSceneService.java b/src/main/java/club/joylink/rtss/services/race/RaceSceneService.java index 616b3f198..2a1bbb944 100644 --- a/src/main/java/club/joylink/rtss/services/race/RaceSceneService.java +++ b/src/main/java/club/joylink/rtss/services/race/RaceSceneService.java @@ -135,10 +135,6 @@ public class RaceSceneService extends RaceService { } } - public static void main(String[] args) { - StorageSimulation.Builder ss = StorageSimulation.newBuilder(); - ss.addPlayerIds("a"); - } private PublishHereVO createSceneProto(Long TraningPublish) { DraftTraining2WithBLOBs bs = this.trainingDao.selectByPrimaryKey(TraningPublish); diff --git a/src/main/java/club/joylink/rtss/services/race/RaceScoreRuleService.java b/src/main/java/club/joylink/rtss/services/race/RaceScoreRuleService.java index 93040f0c7..abe265105 100644 --- a/src/main/java/club/joylink/rtss/services/race/RaceScoreRuleService.java +++ b/src/main/java/club/joylink/rtss/services/race/RaceScoreRuleService.java @@ -65,7 +65,6 @@ public class RaceScoreRuleService extends RaceService { rule.setUpdaterId(user.getId()); rule.setUpdateTime(LocalDateTime.now()); rule.setRule(ruleProto.toByteArray()); - //TODO 规则明细 ruleDAO.updateByPrimaryKeySelective(rule); } diff --git a/src/main/java/club/joylink/rtss/services/race/RaceTaskService.java b/src/main/java/club/joylink/rtss/services/race/RaceTaskService.java index 0c14f630a..a9d3990a3 100644 --- a/src/main/java/club/joylink/rtss/services/race/RaceTaskService.java +++ b/src/main/java/club/joylink/rtss/services/race/RaceTaskService.java @@ -16,6 +16,7 @@ import club.joylink.rtss.vo.race.RaceTask.RaceTaskDetailVO; import club.joylink.rtss.vo.race.RaceTaskTreeVO; import com.google.common.collect.Lists; import java.time.LocalDateTime; +import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Objects; @@ -128,6 +129,9 @@ public class RaceTaskService extends RaceService { List taskList = this.raceTaskDAO.selectByExample(null); Map> mapList = taskList.stream().map(RaceTaskTreeVO::new).collect(Collectors.groupingBy(RaceTaskTreeVO::getParentId)); List rootTaskList = mapList.get(TASK_ROOT_ID); + if (CollectionUtils.isEmpty(rootTaskList)) { + return Collections.emptyList(); + } for (RaceTaskTreeVO rootTask : rootTaskList) { this.loopFind(rootTask, mapList); } diff --git a/src/main/java/club/joylink/rtss/vo/race/RacePaper.java b/src/main/java/club/joylink/rtss/vo/race/RacePaper.java index f3e2601e9..feb080226 100644 --- a/src/main/java/club/joylink/rtss/vo/race/RacePaper.java +++ b/src/main/java/club/joylink/rtss/vo/race/RacePaper.java @@ -71,31 +71,27 @@ public final class RacePaper { getSeasonNameBytes(); /** - * .common.ModifyInfoVO modify_info = 7; + * bool support_copy = 7; + * @return The supportCopy. + */ + boolean getSupportCopy(); + + /** + * .common.ModifyInfoVO modify_info = 8; * @return Whether the modifyInfo field is set. */ boolean hasModifyInfo(); /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; * @return The modifyInfo. */ club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO getModifyInfo(); /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder(); } /** - *
-   *message RacePaperVO {
-   *int64 id = 1;
-   *string name = 2;
-   *string desc = 3;
-   *RaceSeason season = 4;
-   *common.ModifyInfoVO modifyInfo = 5;
-   *}
-   * 
- * * Protobuf type {@code race.RacePaperVO} */ public static final class RacePaperVO extends @@ -276,10 +272,21 @@ public final class RacePaper { } } - public static final int MODIFY_INFO_FIELD_NUMBER = 7; + public static final int SUPPORT_COPY_FIELD_NUMBER = 7; + private boolean supportCopy_ = false; + /** + * bool support_copy = 7; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + + public static final int MODIFY_INFO_FIELD_NUMBER = 8; private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_; /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; * @return Whether the modifyInfo field is set. */ @java.lang.Override @@ -287,7 +294,7 @@ public final class RacePaper { return modifyInfo_ != null; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; * @return The modifyInfo. */ @java.lang.Override @@ -295,7 +302,7 @@ public final class RacePaper { return modifyInfo_ == null ? club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance() : modifyInfo_; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ @java.lang.Override public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder() { @@ -331,8 +338,11 @@ public final class RacePaper { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, seasonName_); } + if (supportCopy_ != false) { + output.writeBool(7, supportCopy_); + } if (modifyInfo_ != null) { - output.writeMessage(7, getModifyInfo()); + output.writeMessage(8, getModifyInfo()); } getUnknownFields().writeTo(output); } @@ -360,9 +370,13 @@ public final class RacePaper { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, seasonName_); } + if (supportCopy_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, supportCopy_); + } if (modifyInfo_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getModifyInfo()); + .computeMessageSize(8, getModifyInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -389,6 +403,8 @@ public final class RacePaper { != other.getSeasonId()) return false; if (!getSeasonName() .equals(other.getSeasonName())) return false; + if (getSupportCopy() + != other.getSupportCopy()) return false; if (hasModifyInfo() != other.hasModifyInfo()) return false; if (hasModifyInfo()) { if (!getModifyInfo() @@ -417,6 +433,9 @@ public final class RacePaper { getSeasonId()); hash = (37 * hash) + SEASON_NAME_FIELD_NUMBER; hash = (53 * hash) + getSeasonName().hashCode(); + hash = (37 * hash) + SUPPORT_COPY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportCopy()); if (hasModifyInfo()) { hash = (37 * hash) + MODIFY_INFO_FIELD_NUMBER; hash = (53 * hash) + getModifyInfo().hashCode(); @@ -519,16 +538,6 @@ public final class RacePaper { return builder; } /** - *
-     *message RacePaperVO {
-     *int64 id = 1;
-     *string name = 2;
-     *string desc = 3;
-     *RaceSeason season = 4;
-     *common.ModifyInfoVO modifyInfo = 5;
-     *}
-     * 
- * * Protobuf type {@code race.RacePaperVO} */ public static final class Builder extends @@ -567,6 +576,7 @@ public final class RacePaper { desc_ = ""; seasonId_ = 0L; seasonName_ = ""; + supportCopy_ = false; modifyInfo_ = null; if (modifyInfoBuilder_ != null) { modifyInfoBuilder_.dispose(); @@ -621,6 +631,9 @@ public final class RacePaper { result.seasonName_ = seasonName_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.supportCopy_ = supportCopy_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.modifyInfo_ = modifyInfoBuilder_ == null ? modifyInfo_ : modifyInfoBuilder_.build(); @@ -660,6 +673,9 @@ public final class RacePaper { bitField0_ |= 0x00000010; onChanged(); } + if (other.getSupportCopy() != false) { + setSupportCopy(other.getSupportCopy()); + } if (other.hasModifyInfo()) { mergeModifyInfo(other.getModifyInfo()); } @@ -714,13 +730,18 @@ public final class RacePaper { bitField0_ |= 0x00000010; break; } // case 50 - case 58: { + case 56: { + supportCopy_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { input.readMessage( getModifyInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; - } // case 58 + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1030,18 +1051,50 @@ public final class RacePaper { return this; } + private boolean supportCopy_ ; + /** + * bool support_copy = 7; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + /** + * bool support_copy = 7; + * @param value The supportCopy to set. + * @return This builder for chaining. + */ + public Builder setSupportCopy(boolean value) { + + supportCopy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool support_copy = 7; + * @return This builder for chaining. + */ + public Builder clearSupportCopy() { + bitField0_ = (bitField0_ & ~0x00000020); + supportCopy_ = false; + onChanged(); + return this; + } + private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_; private com.google.protobuf.SingleFieldBuilderV3< club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder> modifyInfoBuilder_; /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; * @return Whether the modifyInfo field is set. */ public boolean hasModifyInfo() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; * @return The modifyInfo. */ public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO getModifyInfo() { @@ -1052,7 +1105,7 @@ public final class RacePaper { } } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public Builder setModifyInfo(club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO value) { if (modifyInfoBuilder_ == null) { @@ -1063,12 +1116,12 @@ public final class RacePaper { } else { modifyInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public Builder setModifyInfo( club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder builderForValue) { @@ -1077,16 +1130,16 @@ public final class RacePaper { } else { modifyInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public Builder mergeModifyInfo(club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO value) { if (modifyInfoBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && + if (((bitField0_ & 0x00000040) != 0) && modifyInfo_ != null && modifyInfo_ != club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance()) { getModifyInfoBuilder().mergeFrom(value); @@ -1096,15 +1149,15 @@ public final class RacePaper { } else { modifyInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public Builder clearModifyInfo() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); modifyInfo_ = null; if (modifyInfoBuilder_ != null) { modifyInfoBuilder_.dispose(); @@ -1114,15 +1167,15 @@ public final class RacePaper { return this; } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder getModifyInfoBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getModifyInfoFieldBuilder().getBuilder(); } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder() { if (modifyInfoBuilder_ != null) { @@ -1133,7 +1186,7 @@ public final class RacePaper { } } /** - * .common.ModifyInfoVO modify_info = 7; + * .common.ModifyInfoVO modify_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder> @@ -1212,6 +1265,1433 @@ public final class RacePaper { } + public interface RacePaperDetailVOOrBuilder extends + // @@protoc_insertion_point(interface_extends:race.RacePaperDetailVO) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string desc = 3; + * @return The desc. + */ + java.lang.String getDesc(); + /** + * string desc = 3; + * @return The bytes for desc. + */ + com.google.protobuf.ByteString + getDescBytes(); + + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return Whether the moduleVo field is set. + */ + boolean hasModuleVo(); + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return The moduleVo. + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getModuleVo(); + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder getModuleVoOrBuilder(); + + /** + * int64 season_id = 5; + * @return The seasonId. + */ + long getSeasonId(); + + /** + * string season_name = 6; + * @return The seasonName. + */ + java.lang.String getSeasonName(); + /** + * string season_name = 6; + * @return The bytes for seasonName. + */ + com.google.protobuf.ByteString + getSeasonNameBytes(); + + /** + * bool support_copy = 7; + * @return The supportCopy. + */ + boolean getSupportCopy(); + + /** + * .common.ModifyInfoVO modify_info = 8; + * @return Whether the modifyInfo field is set. + */ + boolean hasModifyInfo(); + /** + * .common.ModifyInfoVO modify_info = 8; + * @return The modifyInfo. + */ + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO getModifyInfo(); + /** + * .common.ModifyInfoVO modify_info = 8; + */ + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder(); + } + /** + * Protobuf type {@code race.RacePaperDetailVO} + */ + public static final class RacePaperDetailVO extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:race.RacePaperDetailVO) + RacePaperDetailVOOrBuilder { + private static final long serialVersionUID = 0L; + // Use RacePaperDetailVO.newBuilder() to construct. + private RacePaperDetailVO(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RacePaperDetailVO() { + name_ = ""; + desc_ = ""; + seasonName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RacePaperDetailVO(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperDetailVO_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperDetailVO_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.class, club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_ = 0L; + /** + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESC_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object desc_ = ""; + /** + * string desc = 3; + * @return The desc. + */ + @java.lang.Override + public java.lang.String getDesc() { + java.lang.Object ref = desc_; + 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(); + desc_ = s; + return s; + } + } + /** + * string desc = 3; + * @return The bytes for desc. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescBytes() { + java.lang.Object ref = desc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODULE_VO_FIELD_NUMBER = 4; + private club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO moduleVo_; + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return Whether the moduleVo field is set. + */ + @java.lang.Override + public boolean hasModuleVo() { + return moduleVo_ != null; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return The moduleVo. + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getModuleVo() { + return moduleVo_ == null ? club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance() : moduleVo_; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder getModuleVoOrBuilder() { + return moduleVo_ == null ? club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance() : moduleVo_; + } + + public static final int SEASON_ID_FIELD_NUMBER = 5; + private long seasonId_ = 0L; + /** + * int64 season_id = 5; + * @return The seasonId. + */ + @java.lang.Override + public long getSeasonId() { + return seasonId_; + } + + public static final int SEASON_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object seasonName_ = ""; + /** + * string season_name = 6; + * @return The seasonName. + */ + @java.lang.Override + public java.lang.String getSeasonName() { + java.lang.Object ref = seasonName_; + 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(); + seasonName_ = s; + return s; + } + } + /** + * string season_name = 6; + * @return The bytes for seasonName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSeasonNameBytes() { + java.lang.Object ref = seasonName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + seasonName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_COPY_FIELD_NUMBER = 7; + private boolean supportCopy_ = false; + /** + * bool support_copy = 7; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + + public static final int MODIFY_INFO_FIELD_NUMBER = 8; + private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_; + /** + * .common.ModifyInfoVO modify_info = 8; + * @return Whether the modifyInfo field is set. + */ + @java.lang.Override + public boolean hasModifyInfo() { + return modifyInfo_ != null; + } + /** + * .common.ModifyInfoVO modify_info = 8; + * @return The modifyInfo. + */ + @java.lang.Override + public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO getModifyInfo() { + return modifyInfo_ == null ? club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance() : modifyInfo_; + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + @java.lang.Override + public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder() { + return modifyInfo_ == null ? club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance() : modifyInfo_; + } + + 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 (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_); + } + if (moduleVo_ != null) { + output.writeMessage(4, getModuleVo()); + } + if (seasonId_ != 0L) { + output.writeInt64(5, seasonId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, seasonName_); + } + if (supportCopy_ != false) { + output.writeBool(7, supportCopy_); + } + if (modifyInfo_ != null) { + output.writeMessage(8, getModifyInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_); + } + if (moduleVo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getModuleVo()); + } + if (seasonId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, seasonId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seasonName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, seasonName_); + } + if (supportCopy_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, supportCopy_); + } + if (modifyInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getModifyInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO)) { + return super.equals(obj); + } + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO other = (club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO) obj; + + if (getId() + != other.getId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDesc() + .equals(other.getDesc())) return false; + if (hasModuleVo() != other.hasModuleVo()) return false; + if (hasModuleVo()) { + if (!getModuleVo() + .equals(other.getModuleVo())) return false; + } + if (getSeasonId() + != other.getSeasonId()) return false; + if (!getSeasonName() + .equals(other.getSeasonName())) return false; + if (getSupportCopy() + != other.getSupportCopy()) return false; + if (hasModifyInfo() != other.hasModifyInfo()) return false; + if (hasModifyInfo()) { + if (!getModifyInfo() + .equals(other.getModifyInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESC_FIELD_NUMBER; + hash = (53 * hash) + getDesc().hashCode(); + if (hasModuleVo()) { + hash = (37 * hash) + MODULE_VO_FIELD_NUMBER; + hash = (53 * hash) + getModuleVo().hashCode(); + } + hash = (37 * hash) + SEASON_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSeasonId()); + hash = (37 * hash) + SEASON_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSeasonName().hashCode(); + hash = (37 * hash) + SUPPORT_COPY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportCopy()); + if (hasModifyInfo()) { + hash = (37 * hash) + MODIFY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getModifyInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO 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 club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO 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 club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO 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(club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO 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 race.RacePaperDetailVO} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:race.RacePaperDetailVO) + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVOOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperDetailVO_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperDetailVO_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.class, club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.Builder.class); + } + + // Construct using club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = 0L; + name_ = ""; + desc_ = ""; + moduleVo_ = null; + if (moduleVoBuilder_ != null) { + moduleVoBuilder_.dispose(); + moduleVoBuilder_ = null; + } + seasonId_ = 0L; + seasonName_ = ""; + supportCopy_ = false; + modifyInfo_ = null; + if (modifyInfoBuilder_ != null) { + modifyInfoBuilder_.dispose(); + modifyInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperDetailVO_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO getDefaultInstanceForType() { + return club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO build() { + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO buildPartial() { + club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO result = new club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.desc_ = desc_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.moduleVo_ = moduleVoBuilder_ == null + ? moduleVo_ + : moduleVoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.seasonId_ = seasonId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.seasonName_ = seasonName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.supportCopy_ = supportCopy_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modifyInfo_ = modifyInfoBuilder_ == null + ? modifyInfo_ + : modifyInfoBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO) { + return mergeFrom((club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO other) { + if (other == club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDesc().isEmpty()) { + desc_ = other.desc_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasModuleVo()) { + mergeModuleVo(other.getModuleVo()); + } + if (other.getSeasonId() != 0L) { + setSeasonId(other.getSeasonId()); + } + if (!other.getSeasonName().isEmpty()) { + seasonName_ = other.seasonName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getSupportCopy() != false) { + setSupportCopy(other.getSupportCopy()); + } + if (other.hasModifyInfo()) { + mergeModifyInfo(other.getModifyInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + id_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + desc_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getModuleVoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + seasonId_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + seasonName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + supportCopy_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + input.readMessage( + getModifyInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long id_ ; + /** + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object desc_ = ""; + /** + * string desc = 3; + * @return The desc. + */ + public java.lang.String getDesc() { + java.lang.Object ref = desc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string desc = 3; + * @return The bytes for desc. + */ + public com.google.protobuf.ByteString + getDescBytes() { + java.lang.Object ref = desc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + desc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string desc = 3; + * @param value The desc to set. + * @return This builder for chaining. + */ + public Builder setDesc( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + desc_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string desc = 3; + * @return This builder for chaining. + */ + public Builder clearDesc() { + desc_ = getDefaultInstance().getDesc(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string desc = 3; + * @param value The bytes for desc to set. + * @return This builder for chaining. + */ + public Builder setDescBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + desc_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO moduleVo_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder> moduleVoBuilder_; + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return Whether the moduleVo field is set. + */ + public boolean hasModuleVo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .race.RacePaperModuleVO module_vo = 4; + * @return The moduleVo. + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getModuleVo() { + if (moduleVoBuilder_ == null) { + return moduleVo_ == null ? club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance() : moduleVo_; + } else { + return moduleVoBuilder_.getMessage(); + } + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public Builder setModuleVo(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO value) { + if (moduleVoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moduleVo_ = value; + } else { + moduleVoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public Builder setModuleVo( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder builderForValue) { + if (moduleVoBuilder_ == null) { + moduleVo_ = builderForValue.build(); + } else { + moduleVoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public Builder mergeModuleVo(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO value) { + if (moduleVoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + moduleVo_ != null && + moduleVo_ != club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance()) { + getModuleVoBuilder().mergeFrom(value); + } else { + moduleVo_ = value; + } + } else { + moduleVoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public Builder clearModuleVo() { + bitField0_ = (bitField0_ & ~0x00000008); + moduleVo_ = null; + if (moduleVoBuilder_ != null) { + moduleVoBuilder_.dispose(); + moduleVoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder getModuleVoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getModuleVoFieldBuilder().getBuilder(); + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder getModuleVoOrBuilder() { + if (moduleVoBuilder_ != null) { + return moduleVoBuilder_.getMessageOrBuilder(); + } else { + return moduleVo_ == null ? + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance() : moduleVo_; + } + } + /** + * .race.RacePaperModuleVO module_vo = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder> + getModuleVoFieldBuilder() { + if (moduleVoBuilder_ == null) { + moduleVoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder>( + getModuleVo(), + getParentForChildren(), + isClean()); + moduleVo_ = null; + } + return moduleVoBuilder_; + } + + private long seasonId_ ; + /** + * int64 season_id = 5; + * @return The seasonId. + */ + @java.lang.Override + public long getSeasonId() { + return seasonId_; + } + /** + * int64 season_id = 5; + * @param value The seasonId to set. + * @return This builder for chaining. + */ + public Builder setSeasonId(long value) { + + seasonId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 season_id = 5; + * @return This builder for chaining. + */ + public Builder clearSeasonId() { + bitField0_ = (bitField0_ & ~0x00000010); + seasonId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object seasonName_ = ""; + /** + * string season_name = 6; + * @return The seasonName. + */ + public java.lang.String getSeasonName() { + java.lang.Object ref = seasonName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + seasonName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string season_name = 6; + * @return The bytes for seasonName. + */ + public com.google.protobuf.ByteString + getSeasonNameBytes() { + java.lang.Object ref = seasonName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + seasonName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string season_name = 6; + * @param value The seasonName to set. + * @return This builder for chaining. + */ + public Builder setSeasonName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + seasonName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string season_name = 6; + * @return This builder for chaining. + */ + public Builder clearSeasonName() { + seasonName_ = getDefaultInstance().getSeasonName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string season_name = 6; + * @param value The bytes for seasonName to set. + * @return This builder for chaining. + */ + public Builder setSeasonNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + seasonName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean supportCopy_ ; + /** + * bool support_copy = 7; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + /** + * bool support_copy = 7; + * @param value The supportCopy to set. + * @return This builder for chaining. + */ + public Builder setSupportCopy(boolean value) { + + supportCopy_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * bool support_copy = 7; + * @return This builder for chaining. + */ + public Builder clearSupportCopy() { + bitField0_ = (bitField0_ & ~0x00000040); + supportCopy_ = false; + onChanged(); + return this; + } + + private club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO modifyInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder> modifyInfoBuilder_; + /** + * .common.ModifyInfoVO modify_info = 8; + * @return Whether the modifyInfo field is set. + */ + public boolean hasModifyInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .common.ModifyInfoVO modify_info = 8; + * @return The modifyInfo. + */ + public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO getModifyInfo() { + if (modifyInfoBuilder_ == null) { + return modifyInfo_ == null ? club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance() : modifyInfo_; + } else { + return modifyInfoBuilder_.getMessage(); + } + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public Builder setModifyInfo(club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO value) { + if (modifyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modifyInfo_ = value; + } else { + modifyInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public Builder setModifyInfo( + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder builderForValue) { + if (modifyInfoBuilder_ == null) { + modifyInfo_ = builderForValue.build(); + } else { + modifyInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public Builder mergeModifyInfo(club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO value) { + if (modifyInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + modifyInfo_ != null && + modifyInfo_ != club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance()) { + getModifyInfoBuilder().mergeFrom(value); + } else { + modifyInfo_ = value; + } + } else { + modifyInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public Builder clearModifyInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + modifyInfo_ = null; + if (modifyInfoBuilder_ != null) { + modifyInfoBuilder_.dispose(); + modifyInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder getModifyInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getModifyInfoFieldBuilder().getBuilder(); + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + public club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder getModifyInfoOrBuilder() { + if (modifyInfoBuilder_ != null) { + return modifyInfoBuilder_.getMessageOrBuilder(); + } else { + return modifyInfo_ == null ? + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.getDefaultInstance() : modifyInfo_; + } + } + /** + * .common.ModifyInfoVO modify_info = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder> + getModifyInfoFieldBuilder() { + if (modifyInfoBuilder_ == null) { + modifyInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVO.Builder, club.joylink.rtss.vo.common.ModifyInfo.ModifyInfoVOOrBuilder>( + getModifyInfo(), + getParentForChildren(), + isClean()); + modifyInfo_ = null; + } + return modifyInfoBuilder_; + } + @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:race.RacePaperDetailVO) + } + + // @@protoc_insertion_point(class_scope:race.RacePaperDetailVO) + private static final club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO(); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RacePaperDetailVO parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperDetailVO getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface RacePaperCreateVOOrBuilder extends // @@protoc_insertion_point(interface_extends:race.RacePaperCreateVO) com.google.protobuf.MessageOrBuilder { @@ -1253,6 +2733,12 @@ public final class RacePaper { * @return The seasonId. */ long getSeasonId(); + + /** + * bool support_copy = 4; + * @return The supportCopy. + */ + boolean getSupportCopy(); } /** * Protobuf type {@code race.RacePaperCreateVO} @@ -1388,6 +2874,17 @@ public final class RacePaper { return seasonId_; } + public static final int SUPPORT_COPY_FIELD_NUMBER = 4; + private boolean supportCopy_ = false; + /** + * bool support_copy = 4; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1411,6 +2908,9 @@ public final class RacePaper { if (seasonId_ != 0L) { output.writeInt64(3, seasonId_); } + if (supportCopy_ != false) { + output.writeBool(4, supportCopy_); + } getUnknownFields().writeTo(output); } @@ -1430,6 +2930,10 @@ public final class RacePaper { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, seasonId_); } + if (supportCopy_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, supportCopy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1451,6 +2955,8 @@ public final class RacePaper { .equals(other.getDesc())) return false; if (getSeasonId() != other.getSeasonId()) return false; + if (getSupportCopy() + != other.getSupportCopy()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1469,6 +2975,9 @@ public final class RacePaper { hash = (37 * hash) + SEASON_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeasonId()); + hash = (37 * hash) + SUPPORT_COPY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSupportCopy()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1603,6 +3112,7 @@ public final class RacePaper { name_ = ""; desc_ = ""; seasonId_ = 0L; + supportCopy_ = false; return this; } @@ -1645,6 +3155,9 @@ public final class RacePaper { if (((from_bitField0_ & 0x00000004) != 0)) { result.seasonId_ = seasonId_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.supportCopy_ = supportCopy_; + } } @java.lang.Override @@ -1672,6 +3185,9 @@ public final class RacePaper { if (other.getSeasonId() != 0L) { setSeasonId(other.getSeasonId()); } + if (other.getSupportCopy() != false) { + setSupportCopy(other.getSupportCopy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1713,6 +3229,11 @@ public final class RacePaper { bitField0_ |= 0x00000004; break; } // case 24 + case 32: { + supportCopy_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1925,6 +3446,38 @@ public final class RacePaper { onChanged(); return this; } + + private boolean supportCopy_ ; + /** + * bool support_copy = 4; + * @return The supportCopy. + */ + @java.lang.Override + public boolean getSupportCopy() { + return supportCopy_; + } + /** + * bool support_copy = 4; + * @param value The supportCopy to set. + * @return This builder for chaining. + */ + public Builder setSupportCopy(boolean value) { + + supportCopy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * bool support_copy = 4; + * @return This builder for chaining. + */ + public Builder clearSupportCopy() { + bitField0_ = (bitField0_ & ~0x00000008); + supportCopy_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1989,16 +3542,3170 @@ public final class RacePaper { } + public interface RacePaperModuleVOOrBuilder extends + // @@protoc_insertion_point(interface_extends:race.RacePaperModuleVO) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + java.util.List + getModulesList(); + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getModules(int index); + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + int getModulesCount(); + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + java.util.List + getModulesOrBuilderList(); + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder getModulesOrBuilder( + int index); + } + /** + *
+   *赛题模块
+   * 
+ * + * Protobuf type {@code race.RacePaperModuleVO} + */ + public static final class RacePaperModuleVO extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:race.RacePaperModuleVO) + RacePaperModuleVOOrBuilder { + private static final long serialVersionUID = 0L; + // Use RacePaperModuleVO.newBuilder() to construct. + private RacePaperModuleVO(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RacePaperModuleVO() { + modules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RacePaperModuleVO(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder.class); + } + + public interface PaperModuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:race.RacePaperModuleVO.PaperModule) + com.google.protobuf.MessageOrBuilder { + + /** + * string module_name = 1; + * @return The moduleName. + */ + java.lang.String getModuleName(); + /** + * string module_name = 1; + * @return The bytes for moduleName. + */ + com.google.protobuf.ByteString + getModuleNameBytes(); + + /** + * int32 duration = 2; + * @return The duration. + */ + int getDuration(); + + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + java.util.List + getGroupList(); + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index); + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + int getGroupCount(); + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + java.util.List + getGroupOrBuilderList(); + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index); + } + /** + * Protobuf type {@code race.RacePaperModuleVO.PaperModule} + */ + public static final class PaperModule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:race.RacePaperModuleVO.PaperModule) + PaperModuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use PaperModule.newBuilder() to construct. + private PaperModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PaperModule() { + moduleName_ = ""; + group_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PaperModule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_PaperModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_PaperModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder.class); + } + + public static final int MODULE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object moduleName_ = ""; + /** + * string module_name = 1; + * @return The moduleName. + */ + @java.lang.Override + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + 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(); + moduleName_ = s; + return s; + } + } + /** + * string module_name = 1; + * @return The bytes for moduleName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 2; + private int duration_ = 0; + /** + * int32 duration = 2; + * @return The duration. + */ + @java.lang.Override + public int getDuration() { + return duration_; + } + + public static final int GROUP_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List group_; + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + @java.lang.Override + public java.util.List getGroupList() { + return group_; + } + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + @java.lang.Override + public java.util.List + getGroupOrBuilderList() { + return group_; + } + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + @java.lang.Override + public int getGroupCount() { + return group_.size(); + } + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index) { + return group_.get(index); + } + /** + *
+       *任务分组(此分组目前看仅为称呼)
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index) { + return group_.get(index); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moduleName_); + } + if (duration_ != 0) { + output.writeInt32(2, duration_); + } + for (int i = 0; i < group_.size(); i++) { + output.writeMessage(3, group_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, moduleName_); + } + if (duration_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, duration_); + } + for (int i = 0; i < group_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, group_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule)) { + return super.equals(obj); + } + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule other = (club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule) obj; + + if (!getModuleName() + .equals(other.getModuleName())) return false; + if (getDuration() + != other.getDuration()) return false; + if (!getGroupList() + .equals(other.getGroupList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MODULE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModuleName().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + if (getGroupCount() > 0) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroupList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule 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(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule 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 race.RacePaperModuleVO.PaperModule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:race.RacePaperModuleVO.PaperModule) + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_PaperModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_PaperModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder.class); + } + + // Construct using club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + moduleName_ = ""; + duration_ = 0; + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + } else { + group_ = null; + groupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_PaperModule_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getDefaultInstanceForType() { + return club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule build() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule buildPartial() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule result = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule result) { + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + group_ = java.util.Collections.unmodifiableList(group_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); + } + } + + private void buildPartial0(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.moduleName_ = moduleName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = duration_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule) { + return mergeFrom((club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule other) { + if (other == club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.getDefaultInstance()) return this; + if (!other.getModuleName().isEmpty()) { + moduleName_ = other.moduleName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + if (groupBuilder_ == null) { + if (!other.group_.isEmpty()) { + if (group_.isEmpty()) { + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureGroupIsMutable(); + group_.addAll(other.group_); + } + onChanged(); + } + } else { + if (!other.group_.isEmpty()) { + if (groupBuilder_.isEmpty()) { + groupBuilder_.dispose(); + groupBuilder_ = null; + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000004); + groupBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupFieldBuilder() : null; + } else { + groupBuilder_.addAllMessages(other.group_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + moduleName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + duration_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group m = + input.readMessage( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.parser(), + extensionRegistry); + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(m); + } else { + groupBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object moduleName_ = ""; + /** + * string module_name = 1; + * @return The moduleName. + */ + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string module_name = 1; + * @return The bytes for moduleName. + */ + public com.google.protobuf.ByteString + getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string module_name = 1; + * @param value The moduleName to set. + * @return This builder for chaining. + */ + public Builder setModuleName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + moduleName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string module_name = 1; + * @return This builder for chaining. + */ + public Builder clearModuleName() { + moduleName_ = getDefaultInstance().getModuleName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string module_name = 1; + * @param value The bytes for moduleName to set. + * @return This builder for chaining. + */ + public Builder setModuleNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + moduleName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int duration_ ; + /** + * int32 duration = 2; + * @return The duration. + */ + @java.lang.Override + public int getDuration() { + return duration_; + } + /** + * int32 duration = 2; + * @param value The duration to set. + * @return This builder for chaining. + */ + public Builder setDuration(int value) { + + duration_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 duration = 2; + * @return This builder for chaining. + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = 0; + onChanged(); + return this; + } + + private java.util.List group_ = + java.util.Collections.emptyList(); + private void ensureGroupIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + group_ = new java.util.ArrayList(group_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder> groupBuilder_; + + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public java.util.List getGroupList() { + if (groupBuilder_ == null) { + return java.util.Collections.unmodifiableList(group_); + } else { + return groupBuilder_.getMessageList(); + } + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public int getGroupCount() { + if (groupBuilder_ == null) { + return group_.size(); + } else { + return groupBuilder_.getCount(); + } + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index) { + if (groupBuilder_ == null) { + return group_.get(index); + } else { + return groupBuilder_.getMessage(index); + } + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder setGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.set(index, value); + onChanged(); + } else { + groupBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder setGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.set(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder addGroup(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(value); + onChanged(); + } else { + groupBuilder_.addMessage(value); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder addGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(index, value); + onChanged(); + } else { + groupBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder addGroup( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder addGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder addAllGroup( + java.lang.Iterable values) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, group_); + onChanged(); + } else { + groupBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + groupBuilder_.clear(); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public Builder removeGroup(int index) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.remove(index); + onChanged(); + } else { + groupBuilder_.remove(index); + } + return this; + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder getGroupBuilder( + int index) { + return getGroupFieldBuilder().getBuilder(index); + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index) { + if (groupBuilder_ == null) { + return group_.get(index); } else { + return groupBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public java.util.List + getGroupOrBuilderList() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(group_); + } + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder addGroupBuilder() { + return getGroupFieldBuilder().addBuilder( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance()); + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder addGroupBuilder( + int index) { + return getGroupFieldBuilder().addBuilder( + index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance()); + } + /** + *
+         *任务分组(此分组目前看仅为称呼)
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 3; + */ + public java.util.List + getGroupBuilderList() { + return getGroupFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder>( + group_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + group_ = null; + } + return groupBuilder_; + } + @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:race.RacePaperModuleVO.PaperModule) + } + + // @@protoc_insertion_point(class_scope:race.RacePaperModuleVO.PaperModule) + private static final club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule(); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaperModule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:race.RacePaperModuleVO.Group) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @return A list containing the taskIds. + */ + java.util.List getTaskIdsList(); + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @return The count of taskIds. + */ + int getTaskIdsCount(); + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @param index The index of the element to return. + * @return The taskIds at the given index. + */ + long getTaskIds(int index); + + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + java.util.List + getGroupList(); + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index); + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + int getGroupCount(); + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + java.util.List + getGroupOrBuilderList(); + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index); + + /** + *
+       *分组名称
+       * 
+ * + * string name = 3; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       *分组名称
+       * 
+ * + * string name = 3; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+     *分组
+     * 
+ * + * Protobuf type {@code race.RacePaperModuleVO.Group} + */ + public static final class Group extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:race.RacePaperModuleVO.Group) + GroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Group.newBuilder() to construct. + private Group(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Group() { + taskIds_ = emptyLongList(); + group_ = java.util.Collections.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Group(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_Group_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_Group_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder.class); + } + + public static final int TASK_IDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList taskIds_; + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @return A list containing the taskIds. + */ + @java.lang.Override + public java.util.List + getTaskIdsList() { + return taskIds_; + } + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @return The count of taskIds. + */ + public int getTaskIdsCount() { + return taskIds_.size(); + } + /** + *
+       *此分组中包含的任务的ID(子分组中的任务ID不算)
+       * 
+ * + * repeated int64 task_ids = 1; + * @param index The index of the element to return. + * @return The taskIds at the given index. + */ + public long getTaskIds(int index) { + return taskIds_.getLong(index); + } + private int taskIdsMemoizedSerializedSize = -1; + + public static final int GROUP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List group_; + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + @java.lang.Override + public java.util.List getGroupList() { + return group_; + } + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + @java.lang.Override + public java.util.List + getGroupOrBuilderList() { + return group_; + } + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + @java.lang.Override + public int getGroupCount() { + return group_.size(); + } + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index) { + return group_.get(index); + } + /** + *
+       *此分组的子分组
+       * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index) { + return group_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+       *分组名称
+       * 
+ * + * string name = 3; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+       *分组名称
+       * 
+ * + * string name = 3; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (getTaskIdsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(taskIdsMemoizedSerializedSize); + } + for (int i = 0; i < taskIds_.size(); i++) { + output.writeInt64NoTag(taskIds_.getLong(i)); + } + for (int i = 0; i < group_.size(); i++) { + output.writeMessage(2, group_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < taskIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(taskIds_.getLong(i)); + } + size += dataSize; + if (!getTaskIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + taskIdsMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < group_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, group_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group)) { + return super.equals(obj); + } + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group other = (club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group) obj; + + if (!getTaskIdsList() + .equals(other.getTaskIdsList())) return false; + if (!getGroupList() + .equals(other.getGroupList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTaskIdsCount() > 0) { + hash = (37 * hash) + TASK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTaskIdsList().hashCode(); + } + if (getGroupCount() > 0) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroupList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group 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(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group 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 race.RacePaperModuleVO.Group} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:race.RacePaperModuleVO.Group) + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_Group_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_Group_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder.class); + } + + // Construct using club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + taskIds_ = emptyLongList(); + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + } else { + group_ = null; + groupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_Group_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getDefaultInstanceForType() { + return club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group build() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group buildPartial() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group result = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group result) { + if (((bitField0_ & 0x00000001) != 0)) { + taskIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskIds_ = taskIds_; + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + group_ = java.util.Collections.unmodifiableList(group_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); + } + } + + private void buildPartial0(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group) { + return mergeFrom((club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group other) { + if (other == club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance()) return this; + if (!other.taskIds_.isEmpty()) { + if (taskIds_.isEmpty()) { + taskIds_ = other.taskIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskIdsIsMutable(); + taskIds_.addAll(other.taskIds_); + } + onChanged(); + } + if (groupBuilder_ == null) { + if (!other.group_.isEmpty()) { + if (group_.isEmpty()) { + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGroupIsMutable(); + group_.addAll(other.group_); + } + onChanged(); + } + } else { + if (!other.group_.isEmpty()) { + if (groupBuilder_.isEmpty()) { + groupBuilder_.dispose(); + groupBuilder_ = null; + group_ = other.group_; + bitField0_ = (bitField0_ & ~0x00000002); + groupBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupFieldBuilder() : null; + } else { + groupBuilder_.addAllMessages(other.group_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + long v = input.readInt64(); + ensureTaskIdsIsMutable(); + taskIds_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureTaskIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + taskIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group m = + input.readMessage( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.parser(), + extensionRegistry); + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(m); + } else { + groupBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Internal.LongList taskIds_ = emptyLongList(); + private void ensureTaskIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taskIds_ = mutableCopy(taskIds_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @return A list containing the taskIds. + */ + public java.util.List + getTaskIdsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(taskIds_) : taskIds_; + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @return The count of taskIds. + */ + public int getTaskIdsCount() { + return taskIds_.size(); + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @param index The index of the element to return. + * @return The taskIds at the given index. + */ + public long getTaskIds(int index) { + return taskIds_.getLong(index); + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @param index The index to set the value at. + * @param value The taskIds to set. + * @return This builder for chaining. + */ + public Builder setTaskIds( + int index, long value) { + + ensureTaskIdsIsMutable(); + taskIds_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @param value The taskIds to add. + * @return This builder for chaining. + */ + public Builder addTaskIds(long value) { + + ensureTaskIdsIsMutable(); + taskIds_.addLong(value); + onChanged(); + return this; + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @param values The taskIds to add. + * @return This builder for chaining. + */ + public Builder addAllTaskIds( + java.lang.Iterable values) { + ensureTaskIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskIds_); + onChanged(); + return this; + } + /** + *
+         *此分组中包含的任务的ID(子分组中的任务ID不算)
+         * 
+ * + * repeated int64 task_ids = 1; + * @return This builder for chaining. + */ + public Builder clearTaskIds() { + taskIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List group_ = + java.util.Collections.emptyList(); + private void ensureGroupIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + group_ = new java.util.ArrayList(group_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder> groupBuilder_; + + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public java.util.List getGroupList() { + if (groupBuilder_ == null) { + return java.util.Collections.unmodifiableList(group_); + } else { + return groupBuilder_.getMessageList(); + } + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public int getGroupCount() { + if (groupBuilder_ == null) { + return group_.size(); + } else { + return groupBuilder_.getCount(); + } + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getGroup(int index) { + if (groupBuilder_ == null) { + return group_.get(index); + } else { + return groupBuilder_.getMessage(index); + } + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder setGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.set(index, value); + onChanged(); + } else { + groupBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder setGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.set(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder addGroup(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(value); + onChanged(); + } else { + groupBuilder_.addMessage(value); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder addGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIsMutable(); + group_.add(index, value); + onChanged(); + } else { + groupBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder addGroup( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder addGroup( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder builderForValue) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.add(index, builderForValue.build()); + onChanged(); + } else { + groupBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder addAllGroup( + java.lang.Iterable values) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, group_); + onChanged(); + } else { + groupBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + groupBuilder_.clear(); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public Builder removeGroup(int index) { + if (groupBuilder_ == null) { + ensureGroupIsMutable(); + group_.remove(index); + onChanged(); + } else { + groupBuilder_.remove(index); + } + return this; + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder getGroupBuilder( + int index) { + return getGroupFieldBuilder().getBuilder(index); + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder getGroupOrBuilder( + int index) { + if (groupBuilder_ == null) { + return group_.get(index); } else { + return groupBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public java.util.List + getGroupOrBuilderList() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(group_); + } + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder addGroupBuilder() { + return getGroupFieldBuilder().addBuilder( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance()); + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder addGroupBuilder( + int index) { + return getGroupFieldBuilder().addBuilder( + index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.getDefaultInstance()); + } + /** + *
+         *此分组的子分组
+         * 
+ * + * repeated .race.RacePaperModuleVO.Group group = 2; + */ + public java.util.List + getGroupBuilderList() { + return getGroupFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.GroupOrBuilder>( + group_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + group_ = null; + } + return groupBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+         *分组名称
+         * 
+ * + * string name = 3; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         *分组名称
+         * 
+ * + * string name = 3; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         *分组名称
+         * 
+ * + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         *分组名称
+         * 
+ * + * string name = 3; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         *分组名称
+         * 
+ * + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + 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:race.RacePaperModuleVO.Group) + } + + // @@protoc_insertion_point(class_scope:race.RacePaperModuleVO.Group) + private static final club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group(); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Group parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Group getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MODULES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List modules_; + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + @java.lang.Override + public java.util.List getModulesList() { + return modules_; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + @java.lang.Override + public java.util.List + getModulesOrBuilderList() { + return modules_; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + @java.lang.Override + public int getModulesCount() { + return modules_.size(); + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getModules(int index) { + return modules_.get(index); + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder getModulesOrBuilder( + int index) { + return modules_.get(index); + } + + 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 { + for (int i = 0; i < modules_.size(); i++) { + output.writeMessage(1, modules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < modules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, modules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO)) { + return super.equals(obj); + } + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO other = (club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO) obj; + + if (!getModulesList() + .equals(other.getModulesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getModulesCount() > 0) { + hash = (37 * hash) + MODULES_FIELD_NUMBER; + hash = (53 * hash) + getModulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO 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 club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO 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(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO 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 race.RacePaperModuleVO} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:race.RacePaperModuleVO) + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVOOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_fieldAccessorTable + .ensureFieldAccessorsInitialized( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.class, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.Builder.class); + } + + // Construct using club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + } else { + modules_ = null; + modulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return club.joylink.rtss.vo.race.RacePaper.internal_static_race_RacePaperModuleVO_descriptor; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getDefaultInstanceForType() { + return club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance(); + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO build() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO buildPartial() { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO result = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO result) { + if (modulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + modules_ = java.util.Collections.unmodifiableList(modules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.modules_ = modules_; + } else { + result.modules_ = modulesBuilder_.build(); + } + } + + private void buildPartial0(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO) { + return mergeFrom((club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO other) { + if (other == club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.getDefaultInstance()) return this; + if (modulesBuilder_ == null) { + if (!other.modules_.isEmpty()) { + if (modules_.isEmpty()) { + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModulesIsMutable(); + modules_.addAll(other.modules_); + } + onChanged(); + } + } else { + if (!other.modules_.isEmpty()) { + if (modulesBuilder_.isEmpty()) { + modulesBuilder_.dispose(); + modulesBuilder_ = null; + modules_ = other.modules_; + bitField0_ = (bitField0_ & ~0x00000001); + modulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModulesFieldBuilder() : null; + } else { + modulesBuilder_.addAllMessages(other.modules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule m = + input.readMessage( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.parser(), + extensionRegistry); + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(m); + } else { + modulesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List modules_ = + java.util.Collections.emptyList(); + private void ensureModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + modules_ = new java.util.ArrayList(modules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder> modulesBuilder_; + + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public java.util.List getModulesList() { + if (modulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(modules_); + } else { + return modulesBuilder_.getMessageList(); + } + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public int getModulesCount() { + if (modulesBuilder_ == null) { + return modules_.size(); + } else { + return modulesBuilder_.getCount(); + } + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule getModules(int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); + } else { + return modulesBuilder_.getMessage(index); + } + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder setModules( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.set(index, value); + onChanged(); + } else { + modulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder setModules( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.set(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder addModules(club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(value); + onChanged(); + } else { + modulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder addModules( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule value) { + if (modulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModulesIsMutable(); + modules_.add(index, value); + onChanged(); + } else { + modulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder addModules( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder addModules( + int index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder builderForValue) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.add(index, builderForValue.build()); + onChanged(); + } else { + modulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder addAllModules( + java.lang.Iterable values) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modules_); + onChanged(); + } else { + modulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder clearModules() { + if (modulesBuilder_ == null) { + modules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modulesBuilder_.clear(); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public Builder removeModules(int index) { + if (modulesBuilder_ == null) { + ensureModulesIsMutable(); + modules_.remove(index); + onChanged(); + } else { + modulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder getModulesBuilder( + int index) { + return getModulesFieldBuilder().getBuilder(index); + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder getModulesOrBuilder( + int index) { + if (modulesBuilder_ == null) { + return modules_.get(index); } else { + return modulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public java.util.List + getModulesOrBuilderList() { + if (modulesBuilder_ != null) { + return modulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modules_); + } + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder addModulesBuilder() { + return getModulesFieldBuilder().addBuilder( + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.getDefaultInstance()); + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder addModulesBuilder( + int index) { + return getModulesFieldBuilder().addBuilder( + index, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.getDefaultInstance()); + } + /** + * repeated .race.RacePaperModuleVO.PaperModule modules = 1; + */ + public java.util.List + getModulesBuilderList() { + return getModulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder> + getModulesFieldBuilder() { + if (modulesBuilder_ == null) { + modulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModule.Builder, club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO.PaperModuleOrBuilder>( + modules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + modules_ = null; + } + return modulesBuilder_; + } + @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:race.RacePaperModuleVO) + } + + // @@protoc_insertion_point(class_scope:race.RacePaperModuleVO) + private static final club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO(); + } + + public static club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RacePaperModuleVO parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public club.joylink.rtss.vo.race.RacePaper.RacePaperModuleVO getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_race_RacePaperVO_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_race_RacePaperVO_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_race_RacePaperDetailVO_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_race_RacePaperDetailVO_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_race_RacePaperCreateVO_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_race_RacePaperCreateVO_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_race_RacePaperModuleVO_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_race_RacePaperModuleVO_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_race_RacePaperModuleVO_PaperModule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_race_RacePaperModuleVO_PaperModule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_race_RacePaperModuleVO_Group_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_race_RacePaperModuleVO_Group_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2009,13 +6716,26 @@ public final class RacePaper { static { java.lang.String[] descriptorData = { "\n\020race_paper.proto\022\004race\032\030common/modify_" + - "info.proto\032\026race/race_season.proto\"\210\001\n\013R" + + "info.proto\032\026race/race_season.proto\"\236\001\n\013R" + "acePaperVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004" + "desc\030\003 \001(\t\022\021\n\tseason_id\030\005 \001(\003\022\023\n\013season_" + - "name\030\006 \001(\t\022)\n\013modify_info\030\007 \001(\0132\024.common" + - ".ModifyInfoVO\"B\n\021RacePaperCreateVO\022\014\n\004na" + - "me\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t\022\021\n\tseason_id\030\003 \001(" + - "\003B\033\n\031club.joylink.rtss.vo.raceb\006proto3" + "name\030\006 \001(\t\022\024\n\014support_copy\030\007 \001(\010\022)\n\013modi" + + "fy_info\030\010 \001(\0132\024.common.ModifyInfoVO\"\320\001\n\021" + + "RacePaperDetailVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 " + + "\001(\t\022\014\n\004desc\030\003 \001(\t\022*\n\tmodule_vo\030\004 \001(\0132\027.r" + + "ace.RacePaperModuleVO\022\021\n\tseason_id\030\005 \001(\003" + + "\022\023\n\013season_name\030\006 \001(\t\022\024\n\014support_copy\030\007 " + + "\001(\010\022)\n\013modify_info\030\010 \001(\0132\024.common.Modify" + + "InfoVO\"X\n\021RacePaperCreateVO\022\014\n\004name\030\001 \001(" + + "\t\022\014\n\004desc\030\002 \001(\t\022\021\n\tseason_id\030\003 \001(\003\022\024\n\014su" + + "pport_copy\030\004 \001(\010\"\204\002\n\021RacePaperModuleVO\0224" + + "\n\007modules\030\001 \003(\0132#.race.RacePaperModuleVO" + + ".PaperModule\032b\n\013PaperModule\022\023\n\013module_na" + + "me\030\001 \001(\t\022\020\n\010duration\030\002 \001(\005\022,\n\005group\030\003 \003(" + + "\0132\035.race.RacePaperModuleVO.Group\032U\n\005Grou" + + "p\022\020\n\010task_ids\030\001 \003(\003\022,\n\005group\030\002 \003(\0132\035.rac" + + "e.RacePaperModuleVO.Group\022\014\n\004name\030\003 \001(\tB" + + "\033\n\031club.joylink.rtss.vo.raceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -2028,13 +6748,37 @@ public final class RacePaper { internal_static_race_RacePaperVO_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_race_RacePaperVO_descriptor, - new java.lang.String[] { "Id", "Name", "Desc", "SeasonId", "SeasonName", "ModifyInfo", }); - internal_static_race_RacePaperCreateVO_descriptor = + new java.lang.String[] { "Id", "Name", "Desc", "SeasonId", "SeasonName", "SupportCopy", "ModifyInfo", }); + internal_static_race_RacePaperDetailVO_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_race_RacePaperDetailVO_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_race_RacePaperDetailVO_descriptor, + new java.lang.String[] { "Id", "Name", "Desc", "ModuleVo", "SeasonId", "SeasonName", "SupportCopy", "ModifyInfo", }); + internal_static_race_RacePaperCreateVO_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_race_RacePaperCreateVO_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_race_RacePaperCreateVO_descriptor, - new java.lang.String[] { "Name", "Desc", "SeasonId", }); + new java.lang.String[] { "Name", "Desc", "SeasonId", "SupportCopy", }); + internal_static_race_RacePaperModuleVO_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_race_RacePaperModuleVO_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_race_RacePaperModuleVO_descriptor, + new java.lang.String[] { "Modules", }); + internal_static_race_RacePaperModuleVO_PaperModule_descriptor = + internal_static_race_RacePaperModuleVO_descriptor.getNestedTypes().get(0); + internal_static_race_RacePaperModuleVO_PaperModule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_race_RacePaperModuleVO_PaperModule_descriptor, + new java.lang.String[] { "ModuleName", "Duration", "Group", }); + internal_static_race_RacePaperModuleVO_Group_descriptor = + internal_static_race_RacePaperModuleVO_descriptor.getNestedTypes().get(1); + internal_static_race_RacePaperModuleVO_Group_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_race_RacePaperModuleVO_Group_descriptor, + new java.lang.String[] { "TaskIds", "Group", "Name", }); club.joylink.rtss.vo.common.ModifyInfo.getDescriptor(); club.joylink.rtss.vo.race.RaceSeasonOuterClass.getDescriptor(); } diff --git a/src/main/java/club/joylink/rtss/vo/race/RacePaperPageVO.java b/src/main/java/club/joylink/rtss/vo/race/RacePaperPageVO.java index d98a16f2a..3f8f7a6be 100644 --- a/src/main/java/club/joylink/rtss/vo/race/RacePaperPageVO.java +++ b/src/main/java/club/joylink/rtss/vo/race/RacePaperPageVO.java @@ -9,6 +9,7 @@ public class RacePaperPageVO { private Long id; private String name; private String desc; + private Boolean supportCopy; private Long seasonId; private String seasonName; private Long creatorId; @@ -17,4 +18,5 @@ public class RacePaperPageVO { private LocalDateTime updateTime; private String creatorName; private String updaterName; + private byte[] configs; } diff --git a/src/main/java/club/joylink/rtss/vo/race/RacePaperQueryVO.java b/src/main/java/club/joylink/rtss/vo/race/RacePaperQueryVO.java index daac9b5f0..ca09dc50b 100644 --- a/src/main/java/club/joylink/rtss/vo/race/RacePaperQueryVO.java +++ b/src/main/java/club/joylink/rtss/vo/race/RacePaperQueryVO.java @@ -7,5 +7,5 @@ import lombok.Data; public class RacePaperQueryVO extends PageQueryVO { private String name; - + private Long id; } diff --git a/src/main/resources/mybatis/mapper/racetr/RacetrPaperDAO.xml b/src/main/resources/mybatis/mapper/racetr/RacetrPaperDAO.xml index e62264bda..fa9e688ee 100644 --- a/src/main/resources/mybatis/mapper/racetr/RacetrPaperDAO.xml +++ b/src/main/resources/mybatis/mapper/racetr/RacetrPaperDAO.xml @@ -5,12 +5,16 @@ + + + + @@ -70,8 +74,36 @@ - id, `name`, `desc`, season_id, creator_id, create_time, updater_id, update_time + id, `name`, `desc`, support_copy, season_id, creator_id, create_time, updater_id, + update_time + + configs + + - select + , + from racetr_paper where id = #{id,jdbcType=BIGINT} @@ -111,12 +145,14 @@ - insert into racetr_paper (`name`, `desc`, season_id, - creator_id, create_time, updater_id, - update_time) - values (#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{seasonId,jdbcType=BIGINT}, - #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=BIGINT}, - #{updateTime,jdbcType=TIMESTAMP}) + insert into racetr_paper (`name`, `desc`, support_copy, + season_id, creator_id, create_time, + updater_id, update_time, configs + ) + values (#{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{supportCopy,jdbcType=BIT}, + #{seasonId,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, + #{updaterId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{configs,jdbcType=LONGVARBINARY} + ) insert into racetr_paper @@ -127,6 +163,9 @@ `desc`, + + support_copy, + season_id, @@ -142,6 +181,9 @@ update_time, + + configs, + @@ -150,6 +192,9 @@ #{desc,jdbcType=VARCHAR}, + + #{supportCopy,jdbcType=BIT}, + #{seasonId,jdbcType=BIGINT}, @@ -165,6 +210,9 @@ #{updateTime,jdbcType=TIMESTAMP}, + + #{configs,jdbcType=LONGVARBINARY}, +