添加 protobuf

This commit is contained in:
tiger_zhou 2024-02-18 15:09:03 +08:00
parent 5d07d730eb
commit d278c01d3b
17 changed files with 3440 additions and 646 deletions

@ -1 +1 @@
Subproject commit 1111d29fd06c6ddd30d269ddd1fe421dcdc01c05
Subproject commit 174efa72541acf1a3953c986ca1f64e32a5f886a

View File

@ -1,50 +0,0 @@
package club.joylink.rtss.controller.race;
import club.joylink.rtss.entity.RacePaper;
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
import club.joylink.rtss.services.race.RacePaperService;
import club.joylink.rtss.vo.client.PageQueryVO;
import club.joylink.rtss.vo.client.PageVO;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/api/racePaper")
public class RacePaperController {
private RacePaperService racePaperService;
// /**
// * 创建试卷
// */
// @PostMapping("")
// public RacePaper create(RacePaperCreateVO createVO) {
// return racePaperService.create(createVO);
// }
/**
* 列表查询
*/
@GetMapping("/list")
public List<RacePaper> list(PageQueryVO queryVO) {
return racePaperService.list(queryVO);
}
/**
* 分页查询
*/
@GetMapping("/page")
public PageVO<RacePaper> pageQuery(PageQueryVO queryVO) {
return racePaperService.pageQuery(queryVO);
}
/**
* 删除
*/
@DeleteMapping("/{id}")
public boolean delete(@PathVariable("id") Long id) {
BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.assertNotNull(id);
return racePaperService.delete(id);
}
}

View File

@ -1,15 +0,0 @@
package club.joylink.rtss.controller.race;
import club.joylink.rtss.services.race.RaceSeasonService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/raceSeason")
public class RaceSeasonController {
private RaceSeasonService raceSeasonService;
// @PostMapping("")
// public void create()
}

View File

@ -0,0 +1,15 @@
package club.joylink.rtss.dao.race;
import club.joylink.rtss.dao.MyBatisBaseDao;
import club.joylink.rtss.entity.race.RaceSeason;
import club.joylink.rtss.entity.race.RaceSeasonExample;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* RaceSeasonDAO继承基类
*/
@Repository
public interface RaceSeasonDAO extends MyBatisBaseDao<RaceSeason, Long, RaceSeasonExample> {
}

View File

@ -1,169 +0,0 @@
package club.joylink.rtss.entity;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* @author
*
*/
public class RacePaper implements Serializable {
private Long id;
/**
* 名称
*/
private String name;
/**
* 描述
*/
private String desc;
/**
* 赛季ID
*/
private Long seasonId;
/**
* 创建者的ID
*/
private Long creatorId;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新者的ID
*/
private Long updaterId;
/**
* 更新时间
*/
private LocalDateTime updateTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public Long getSeasonId() {
return seasonId;
}
public void setSeasonId(Long seasonId) {
this.seasonId = seasonId;
}
public Long getCreatorId() {
return creatorId;
}
public void setCreatorId(Long creatorId) {
this.creatorId = creatorId;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public Long getUpdaterId() {
return updaterId;
}
public void setUpdaterId(Long updaterId) {
this.updaterId = updaterId;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
RacePaper other = (RacePaper) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
&& (this.getSeasonId() == null ? other.getSeasonId() == null : this.getSeasonId().equals(other.getSeasonId()))
&& (this.getCreatorId() == null ? other.getCreatorId() == null : this.getCreatorId().equals(other.getCreatorId()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdaterId() == null ? other.getUpdaterId() == null : this.getUpdaterId().equals(other.getUpdaterId()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
result = prime * result + ((getSeasonId() == null) ? 0 : getSeasonId().hashCode());
result = prime * result + ((getCreatorId() == null) ? 0 : getCreatorId().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdaterId() == null) ? 0 : getUpdaterId().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", desc=").append(desc);
sb.append(", seasonId=").append(seasonId);
sb.append(", creatorId=").append(creatorId);
sb.append(", createTime=").append(createTime);
sb.append(", updaterId=").append(updaterId);
sb.append(", updateTime=").append(updateTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -1,19 +1,29 @@
package club.joylink.rtss.services.race;
import club.joylink.rtss.entity.RacePaper;
import club.joylink.rtss.vo.client.PageQueryVO;
import club.joylink.rtss.dao.race.RacePaperDAO;
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.RacePaperQueryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface RacePaperService {
// RacePaper create(RacePaperCreateVO createVO);
public class RacePaperService {
List<RacePaper> list(PageQueryVO queryVO);
@Autowired
private RacePaperDAO paperDAO;
PageVO<RacePaper> pageQuery(PageQueryVO queryVO);
public void create(RacePaperCreateVO createVO, AccountVO user) {
}
boolean delete(long id);
public PageVO<?> pageQuery(RacePaperQueryVO query) {
return null;
}
public void delete(long id) {
}
}

View File

@ -1,7 +1,98 @@
package club.joylink.rtss.services.race;
import club.joylink.rtss.dao.race.RaceSeasonDAO;
import club.joylink.rtss.entity.race.RaceSeason;
import club.joylink.rtss.entity.race.RaceSeasonExample;
import club.joylink.rtss.entity.race.RaceSeasonExample.Criteria;
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
import club.joylink.rtss.util.JsonUtils;
import club.joylink.rtss.vo.AccountVO;
import club.joylink.rtss.vo.client.PageVO;
import club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO;
import club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonQueryVO;
import club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public interface RaceSeasonService {
public class RaceSeasonService {
@Autowired
private RaceSeasonDAO seasonDAO;
public RaceSeason find(Long id) {
RaceSeason rs = this.seasonDAO.selectByPrimaryKey(id);
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(rs), "");
return rs;
}
public void saveOrUpdate(RaceSeasonCreateVO dto, AccountVO user) {
LocalDateTime now = LocalDateTime.now();
if (dto.getId() <= 0L) {
RaceSeason rs = new RaceSeason();
rs.setCode(dto.getCode());
rs.setTerm(dto.getTerm());
rs.setGroup(dto.getGroup().getNumber());
rs.setUpdaterId(user.getId());
rs.setUpdaterId(user.getId());
rs.setCreateTime(now);
rs.setUdpateTime(now);
this.seasonDAO.insert(rs);
} else {
RaceSeason rr = this.find(dto.getId());
rr.setId(user.getId());
rr.setUdpateTime(now);
rr.setCode(dto.getCode());
rr.setTerm(dto.getTerm());
rr.setGroup(dto.getGroup().getNumber());
this.seasonDAO.updateByPrimaryKeySelective(rr);
}
}
public PageVO<RaceSeasonVO> page(RaceSeasonQueryVO query) {
PageHelper.clearPage();
PageHelper.startPage(query.getPage().getPage(), query.getPage().getSize());
RaceSeasonExample example = new RaceSeasonExample();
Criteria c = example.createCriteria();
Page<RaceSeason> page = (Page<RaceSeason>) this.seasonDAO.selectByExample(example);
return PageVO.convert(page, Collections.emptyList());
}
public static void main(String[] args) throws JsonProcessingException {
RaceSeasonVO.Builder voBuild = RaceSeasonVO.newBuilder();
voBuild.setId(0L);
voBuild.setTerm("aaaaa");
RaceSeasonVO rs = voBuild.build();
System.out.println(JsonUtils.writeValueAsString(rs));
// ObjectMapper om = new ObjectMapper();
// System.out.println(om.writeValueAsString(rs));
}
private RaceSeasonVO convertVO(RaceSeason rs) {
RaceSeasonVO.Builder voBuild = RaceSeasonVO.newBuilder();
voBuild.setId(rs.getId());
voBuild.setCode(rs.getCode());
voBuild.setGroupValue(rs.getGroup());
voBuild.setTerm(rs.getTerm());
return voBuild.build();
}
private List<RaceSeasonVO> convertDTO(List<RaceSeason> rsList) {
return null;
}
}

View File

@ -1,6 +1,7 @@
package club.joylink.rtss.util;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
@ -10,71 +11,72 @@ import java.io.IOException;
public class JsonUtils {
public static ObjectMapper objectMapper;
public static ObjectMapper objectMapper;
public static ObjectMapper objectNullableMapper;
public static ObjectMapper objectNullableMapper;
static {
Jackson2ObjectMapperBuilder builder = Jackson2ObjectMapperBuilder.json();
builder
.simpleDateFormat("yyyy-MM-dd HH:mm:ss") // 格式化日期
.timeZone("GMT+8") // 设置时区
.failOnUnknownProperties(false) // 未知属性不抛出异常
.serializationInclusion(JsonInclude.Include.NON_NULL) // 忽略null属性
;
objectMapper = builder.build();
Jackson2ObjectMapperBuilder nullableBuilder = Jackson2ObjectMapperBuilder.json();
nullableBuilder
.simpleDateFormat("yyyy-MM-dd HH:mm:ss") // 格式化日期
.timeZone("GMT+8") // 设置时区
.failOnUnknownProperties(false) // 未知属性不抛出异常
;
objectNullableMapper = nullableBuilder.build();
static {
Jackson2ObjectMapperBuilder builder = Jackson2ObjectMapperBuilder.json();
builder
.simpleDateFormat("yyyy-MM-dd HH:mm:ss") // 格式化日期
.timeZone("GMT+8") // 设置时区
.failOnUnknownProperties(false) // 未知属性不抛出异常
.serializationInclusion(JsonInclude.Include.NON_NULL) // 忽略null属性
.serializationInclusion(Include.NON_EMPTY)
;
objectMapper = builder.build();
Jackson2ObjectMapperBuilder nullableBuilder = Jackson2ObjectMapperBuilder.json();
nullableBuilder
.simpleDateFormat("yyyy-MM-dd HH:mm:ss") // 格式化日期
.timeZone("GMT+8") // 设置时区
.failOnUnknownProperties(false) // 未知属性不抛出异常
;
objectNullableMapper = nullableBuilder.build();
}
public static String writeValueNullableFieldAsString(Object value) {
try {
return objectNullableMapper.writeValueAsString(value);
} catch (JsonProcessingException e) {
throw new RuntimeException("Json write value as String exception", e);
}
}
public static String writeValueNullableFieldAsString(Object value) {
try {
return objectNullableMapper.writeValueAsString(value);
} catch (JsonProcessingException e) {
throw new RuntimeException("Json write value as String exception", e);
}
public static String writeValueAsString(Object value) {
try {
return objectMapper.writeValueAsString(value);
} catch (JsonProcessingException e) {
throw new RuntimeException("Json write value as String exception", e);
}
}
public static String writeValueAsString(Object value) {
try {
return objectMapper.writeValueAsString(value);
} catch (JsonProcessingException e) {
throw new RuntimeException("Json write value as String exception", e);
}
public static <T> T read(String text, Class<T> valueType) {
try {
return objectMapper.readValue(text, valueType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object exception", e);
}
}
public static <T> T read(String text, Class<T> valueType) {
try {
return objectMapper.readValue(text, valueType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object exception", e);
}
public static <T> T read(String text, JavaType valueType) {
try {
return objectMapper.readValue(text, valueType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object exception", e);
}
}
public static <T> T read(String text, JavaType valueType) {
try {
return objectMapper.readValue(text, valueType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object exception", e);
}
public static <T> T readCollection(String text, Class<?> collectionClass, Class<?>... elementClasses) {
try {
JavaType javaType = objectMapper.getTypeFactory().constructParametricType(collectionClass, elementClasses);
return objectMapper.readValue(text, javaType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object Collection exception", e);
}
}
public static <T> T readCollection(String text, Class<?> collectionClass, Class<?>... elementClasses) {
try {
JavaType javaType = objectMapper.getTypeFactory().constructParametricType(collectionClass, elementClasses);
return objectMapper.readValue(text, javaType);
} catch (IOException e) {
throw new RuntimeException("Json read String to Object Collection exception", e);
}
}
public static JavaType getCollectionType(Class<?> collectionClass, Class<?>... elementClasses) {
return objectMapper.getTypeFactory().constructParametricType(collectionClass, elementClasses);
}
public static JavaType getCollectionType(Class<?> collectionClass, Class<?>... elementClasses) {
return objectMapper.getTypeFactory().constructParametricType(collectionClass, elementClasses);
}
}

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/modify_info.proto
// source: modify_info.proto
package club.joylink.rtss.vo.common;
@ -1146,12 +1146,12 @@ public final class ModifyInfo {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030common/modify_info.proto\022\006common\"\206\001\n\014M" +
"odifyInfoVO\022\021\n\tcreatorId\030\001 \001(\003\022\022\n\ncreate" +
"Time\030\002 \001(\t\022\021\n\tupdaterId\030\003 \001(\003\022\022\n\nupdateT" +
"ime\030\004 \001(\t\022\023\n\013creatorName\030\005 \001(\t\022\023\n\013update" +
"rName\030\006 \001(\tB\035\n\033club.joylink.rtss.vo.comm" +
"onb\006proto3"
"\n\021modify_info.proto\022\006common\"\206\001\n\014ModifyIn" +
"foVO\022\021\n\tcreatorId\030\001 \001(\003\022\022\n\ncreateTime\030\002 " +
"\001(\t\022\021\n\tupdaterId\030\003 \001(\003\022\022\n\nupdateTime\030\004 \001" +
"(\t\022\023\n\013creatorName\030\005 \001(\t\022\023\n\013updaterName\030\006" +
" \001(\tB\035\n\033club.joylink.rtss.vo.commonb\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/page_query.proto
// source: page_query.proto
package club.joylink.rtss.vo.common;
@ -552,9 +552,9 @@ public final class PageQuery {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027common/page_query.proto\022\006common\")\n\013Pag" +
"eQueryVO\022\014\n\004page\030\001 \001(\005\022\014\n\004size\030\002 \001(\005B\035\n\033" +
"club.joylink.rtss.vo.commonb\006proto3"
"\n\020page_query.proto\022\006common\")\n\013PageQueryV" +
"O\022\014\n\004page\030\001 \001(\005\022\014\n\004size\030\002 \001(\005B\035\n\033club.jo" +
"ylink.rtss.vo.commonb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: race/race_module.proto
// source: race_module.proto
package club.joylink.rtss.vo.race;
@ -1625,54 +1625,85 @@ public final class RaceModule {
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1;</code>
* <code>int64 id = 1;</code>
* @return The id.
*/
long getId();
/**
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The code.
*/
java.lang.String getCode();
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The bytes for code.
*/
com.google.protobuf.ByteString
getCodeBytes();
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The desc.
*/
java.lang.String getDesc();
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The bytes for desc.
*/
com.google.protobuf.ByteString
getDescBytes();
/**
* <code>int64 paperId = 4;</code>
* <code>int64 paperId = 5;</code>
* @return The paperId.
*/
long getPaperId();
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return Whether the taskSetting field is set.
*/
boolean hasTaskSetting();
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return The taskSetting.
*/
club.joylink.rtss.vo.race.RaceModule.TaskSetting getTaskSetting();
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder getTaskSettingOrBuilder();
/**
* <pre>
*考试总时间min
* </pre>
*
* <code>int64 duration = 7;</code>
* @return The duration.
*/
long getDuration();
}
/**
* Protobuf type {@code race.RaceModuleCreateVO}
@ -1712,11 +1743,26 @@ public final class RaceModule {
club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO.class, club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
* <code>int64 id = 1;</code>
* @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_ = "";
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The name.
*/
@java.lang.Override
@ -1733,7 +1779,11 @@ public final class RaceModule {
}
}
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The bytes for name.
*/
@java.lang.Override
@ -1751,11 +1801,11 @@ public final class RaceModule {
}
}
public static final int CODE_FIELD_NUMBER = 2;
public static final int CODE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object code_ = "";
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The code.
*/
@java.lang.Override
@ -1772,7 +1822,7 @@ public final class RaceModule {
}
}
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The bytes for code.
*/
@java.lang.Override
@ -1790,15 +1840,11 @@ public final class RaceModule {
}
}
public static final int DESC_FIELD_NUMBER = 3;
public static final int DESC_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object desc_ = "";
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The desc.
*/
@java.lang.Override
@ -1815,11 +1861,7 @@ public final class RaceModule {
}
}
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The bytes for desc.
*/
@java.lang.Override
@ -1837,10 +1879,10 @@ public final class RaceModule {
}
}
public static final int PAPERID_FIELD_NUMBER = 4;
public static final int PAPERID_FIELD_NUMBER = 5;
private long paperId_ = 0L;
/**
* <code>int64 paperId = 4;</code>
* <code>int64 paperId = 5;</code>
* @return The paperId.
*/
@java.lang.Override
@ -1848,6 +1890,47 @@ public final class RaceModule {
return paperId_;
}
public static final int TASKSETTING_FIELD_NUMBER = 6;
private club.joylink.rtss.vo.race.RaceModule.TaskSetting taskSetting_;
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return Whether the taskSetting field is set.
*/
@java.lang.Override
public boolean hasTaskSetting() {
return taskSetting_ != null;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return The taskSetting.
*/
@java.lang.Override
public club.joylink.rtss.vo.race.RaceModule.TaskSetting getTaskSetting() {
return taskSetting_ == null ? club.joylink.rtss.vo.race.RaceModule.TaskSetting.getDefaultInstance() : taskSetting_;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
@java.lang.Override
public club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder getTaskSettingOrBuilder() {
return taskSetting_ == null ? club.joylink.rtss.vo.race.RaceModule.TaskSetting.getDefaultInstance() : taskSetting_;
}
public static final int DURATION_FIELD_NUMBER = 7;
private long duration_ = 0L;
/**
* <pre>
*考试总时间min
* </pre>
*
* <code>int64 duration = 7;</code>
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@ -1862,17 +1945,26 @@ public final class RaceModule {
@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, 1, name_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desc_);
}
if (paperId_ != 0L) {
output.writeInt64(4, paperId_);
output.writeInt64(5, paperId_);
}
if (taskSetting_ != null) {
output.writeMessage(6, getTaskSetting());
}
if (duration_ != 0L) {
output.writeInt64(7, duration_);
}
getUnknownFields().writeTo(output);
}
@ -1883,18 +1975,30 @@ public final class RaceModule {
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(1, name_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, code_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desc_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desc_);
}
if (paperId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, paperId_);
.computeInt64Size(5, paperId_);
}
if (taskSetting_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTaskSetting());
}
if (duration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, duration_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@ -1911,6 +2015,8 @@ public final class RaceModule {
}
club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO other = (club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getCode()
@ -1919,6 +2025,13 @@ public final class RaceModule {
.equals(other.getDesc())) return false;
if (getPaperId()
!= other.getPaperId()) return false;
if (hasTaskSetting() != other.hasTaskSetting()) return false;
if (hasTaskSetting()) {
if (!getTaskSetting()
.equals(other.getTaskSetting())) return false;
}
if (getDuration()
!= other.getDuration()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@ -1930,6 +2043,9 @@ public final class RaceModule {
}
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) + CODE_FIELD_NUMBER;
@ -1939,6 +2055,13 @@ public final class RaceModule {
hash = (37 * hash) + PAPERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPaperId());
if (hasTaskSetting()) {
hash = (37 * hash) + TASKSETTING_FIELD_NUMBER;
hash = (53 * hash) + getTaskSetting().hashCode();
}
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDuration());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@ -2070,10 +2193,17 @@ public final class RaceModule {
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
name_ = "";
code_ = "";
desc_ = "";
paperId_ = 0L;
taskSetting_ = null;
if (taskSettingBuilder_ != null) {
taskSettingBuilder_.dispose();
taskSettingBuilder_ = null;
}
duration_ = 0L;
return this;
}
@ -2108,17 +2238,28 @@ public final class RaceModule {
private void buildPartial0(club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.code_ = code_;
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.desc_ = desc_;
result.code_ = code_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.desc_ = desc_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.paperId_ = paperId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.taskSetting_ = taskSettingBuilder_ == null
? taskSetting_
: taskSettingBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.duration_ = duration_;
}
}
@java.lang.Override
@ -2133,24 +2274,33 @@ public final class RaceModule {
public Builder mergeFrom(club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO other) {
if (other == club.joylink.rtss.vo.race.RaceModule.RaceModuleCreateVO.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getCode().isEmpty()) {
code_ = other.code_;
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDesc().isEmpty()) {
desc_ = other.desc_;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getPaperId() != 0L) {
setPaperId(other.getPaperId());
}
if (other.hasTaskSetting()) {
mergeTaskSetting(other.getTaskSetting());
}
if (other.getDuration() != 0L) {
setDuration(other.getDuration());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@ -2177,26 +2327,43 @@ public final class RaceModule {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 10
} // case 8
case 18: {
code_ = input.readStringRequireUtf8();
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
desc_ = input.readStringRequireUtf8();
code_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
paperId_ = input.readInt64();
case 34: {
desc_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 32
} // case 34
case 40: {
paperId_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getTaskSettingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
duration_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -2214,9 +2381,45 @@ public final class RaceModule {
}
private int bitField0_;
private long id_ ;
/**
* <code>int64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* <code>int64 id = 1;</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int64 id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The name.
*/
public java.lang.String getName() {
@ -2232,7 +2435,11 @@ public final class RaceModule {
}
}
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
@ -2249,7 +2456,11 @@ public final class RaceModule {
}
}
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @param value The name to set.
* @return This builder for chaining.
*/
@ -2257,22 +2468,30 @@ public final class RaceModule {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <pre>
*名称
* </pre>
*
* <code>string name = 2;</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
@ -2281,14 +2500,14 @@ public final class RaceModule {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object code_ = "";
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The code.
*/
public java.lang.String getCode() {
@ -2304,7 +2523,7 @@ public final class RaceModule {
}
}
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
@ -2321,7 +2540,7 @@ public final class RaceModule {
}
}
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @param value The code to set.
* @return This builder for chaining.
*/
@ -2329,22 +2548,22 @@ public final class RaceModule {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
code_ = value;
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string code = 2;</code>
* <code>string code = 3;</code>
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
@ -2353,18 +2572,14 @@ public final class RaceModule {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
code_ = value;
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object desc_ = "";
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The desc.
*/
public java.lang.String getDesc() {
@ -2380,11 +2595,7 @@ public final class RaceModule {
}
}
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return The bytes for desc.
*/
public com.google.protobuf.ByteString
@ -2401,11 +2612,7 @@ public final class RaceModule {
}
}
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @param value The desc to set.
* @return This builder for chaining.
*/
@ -2413,30 +2620,22 @@ public final class RaceModule {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
desc_ = value;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @return This builder for chaining.
*/
public Builder clearDesc() {
desc_ = getDefaultInstance().getDesc();
bitField0_ = (bitField0_ & ~0x00000004);
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <pre>
*非必填
* </pre>
*
* <code>string desc = 3;</code>
* <code>string desc = 4;</code>
* @param value The bytes for desc to set.
* @return This builder for chaining.
*/
@ -2445,14 +2644,14 @@ public final class RaceModule {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
desc_ = value;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long paperId_ ;
/**
* <code>int64 paperId = 4;</code>
* <code>int64 paperId = 5;</code>
* @return The paperId.
*/
@java.lang.Override
@ -2460,27 +2659,190 @@ public final class RaceModule {
return paperId_;
}
/**
* <code>int64 paperId = 4;</code>
* <code>int64 paperId = 5;</code>
* @param value The paperId to set.
* @return This builder for chaining.
*/
public Builder setPaperId(long value) {
paperId_ = value;
bitField0_ |= 0x00000008;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* <code>int64 paperId = 4;</code>
* <code>int64 paperId = 5;</code>
* @return This builder for chaining.
*/
public Builder clearPaperId() {
bitField0_ = (bitField0_ & ~0x00000008);
bitField0_ = (bitField0_ & ~0x00000010);
paperId_ = 0L;
onChanged();
return this;
}
private club.joylink.rtss.vo.race.RaceModule.TaskSetting taskSetting_;
private com.google.protobuf.SingleFieldBuilderV3<
club.joylink.rtss.vo.race.RaceModule.TaskSetting, club.joylink.rtss.vo.race.RaceModule.TaskSetting.Builder, club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder> taskSettingBuilder_;
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return Whether the taskSetting field is set.
*/
public boolean hasTaskSetting() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
* @return The taskSetting.
*/
public club.joylink.rtss.vo.race.RaceModule.TaskSetting getTaskSetting() {
if (taskSettingBuilder_ == null) {
return taskSetting_ == null ? club.joylink.rtss.vo.race.RaceModule.TaskSetting.getDefaultInstance() : taskSetting_;
} else {
return taskSettingBuilder_.getMessage();
}
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public Builder setTaskSetting(club.joylink.rtss.vo.race.RaceModule.TaskSetting value) {
if (taskSettingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskSetting_ = value;
} else {
taskSettingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public Builder setTaskSetting(
club.joylink.rtss.vo.race.RaceModule.TaskSetting.Builder builderForValue) {
if (taskSettingBuilder_ == null) {
taskSetting_ = builderForValue.build();
} else {
taskSettingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public Builder mergeTaskSetting(club.joylink.rtss.vo.race.RaceModule.TaskSetting value) {
if (taskSettingBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
taskSetting_ != null &&
taskSetting_ != club.joylink.rtss.vo.race.RaceModule.TaskSetting.getDefaultInstance()) {
getTaskSettingBuilder().mergeFrom(value);
} else {
taskSetting_ = value;
}
} else {
taskSettingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public Builder clearTaskSetting() {
bitField0_ = (bitField0_ & ~0x00000020);
taskSetting_ = null;
if (taskSettingBuilder_ != null) {
taskSettingBuilder_.dispose();
taskSettingBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public club.joylink.rtss.vo.race.RaceModule.TaskSetting.Builder getTaskSettingBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTaskSettingFieldBuilder().getBuilder();
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
public club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder getTaskSettingOrBuilder() {
if (taskSettingBuilder_ != null) {
return taskSettingBuilder_.getMessageOrBuilder();
} else {
return taskSetting_ == null ?
club.joylink.rtss.vo.race.RaceModule.TaskSetting.getDefaultInstance() : taskSetting_;
}
}
/**
* <code>.race.TaskSetting taskSetting = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
club.joylink.rtss.vo.race.RaceModule.TaskSetting, club.joylink.rtss.vo.race.RaceModule.TaskSetting.Builder, club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder>
getTaskSettingFieldBuilder() {
if (taskSettingBuilder_ == null) {
taskSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
club.joylink.rtss.vo.race.RaceModule.TaskSetting, club.joylink.rtss.vo.race.RaceModule.TaskSetting.Builder, club.joylink.rtss.vo.race.RaceModule.TaskSettingOrBuilder>(
getTaskSetting(),
getParentForChildren(),
isClean());
taskSetting_ = null;
}
return taskSettingBuilder_;
}
private long duration_ ;
/**
* <pre>
*考试总时间min
* </pre>
*
* <code>int64 duration = 7;</code>
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
/**
* <pre>
*考试总时间min
* </pre>
*
* <code>int64 duration = 7;</code>
* @param value The duration to set.
* @return This builder for chaining.
*/
public Builder setDuration(long value) {
duration_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* <pre>
*考试总时间min
* </pre>
*
* <code>int64 duration = 7;</code>
* @return This builder for chaining.
*/
public Builder clearDuration() {
bitField0_ = (bitField0_ & ~0x00000040);
duration_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@ -6068,23 +6430,26 @@ public final class RaceModule {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026race/race_module.proto\022\004race\032\021modify_i" +
"nfo.proto\032\020page_query.proto\032\020race_paper." +
"proto\"\312\001\n\014RaceModuleVO\022\n\n\002id\030\001 \001(\003\022\014\n\004na" +
"me\030\002 \001(\t\022\014\n\004code\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022 \n\005" +
"paper\030\005 \001(\0132\021.race.RacePaperVO\022&\n\013taskSe" +
"tting\030\006 \001(\0132\021.race.TaskSetting\022\020\n\010durati" +
"on\030\007 \001(\003\022(\n\nmodifyInfo\030\010 \001(\0132\024.common.Mo" +
"difyInfoVO\"O\n\022RaceModuleCreateVO\022\014\n\004name" +
"\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\022\014\n\004desc\030\003 \001(\t\022\017\n\007pa" +
"perId\030\004 \001(\003\"q\n\021RaceModuleQueryVO\022!\n\004page" +
"\030\001 \001(\0132\023.common.PageQueryVO\022\014\n\004name\030\002 \001(" +
"\t\022\014\n\004code\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022\017\n\007paperId" +
"\030\005 \001(\003\"\226\001\n\013TaskSetting\022\017\n\007taskIds\030\001 \003(\003\022" +
"&\n\005group\030\002 \003(\0132\027.race.TaskSetting.Group\032" +
"N\n\005Group\022\017\n\007taskIds\030\001 \003(\003\022&\n\005group\030\002 \003(\013" +
"2\027.race.TaskSetting.Group\022\014\n\004name\030\003 \001(\tB" +
"\033\n\031club.joylink.rtss.vo.raceb\006proto3"
"\n\021race_module.proto\022\004race\032\030common/modify" +
"_info.proto\032\027common/page_query.proto\032\025ra" +
"ce/race_paper.proto\"\312\001\n\014RaceModuleVO\022\n\n\002" +
"id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004code\030\003 \001(\t\022\014\n\004" +
"desc\030\004 \001(\t\022 \n\005paper\030\005 \001(\0132\021.race.RacePap" +
"erVO\022&\n\013taskSetting\030\006 \001(\0132\021.race.TaskSet" +
"ting\022\020\n\010duration\030\007 \001(\003\022(\n\nmodifyInfo\030\010 \001" +
"(\0132\024.common.ModifyInfoVO\"\225\001\n\022RaceModuleC" +
"reateVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004cod" +
"e\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022\017\n\007paperId\030\005 \001(\003\022&" +
"\n\013taskSetting\030\006 \001(\0132\021.race.TaskSetting\022\020" +
"\n\010duration\030\007 \001(\003\"q\n\021RaceModuleQueryVO\022!\n" +
"\004page\030\001 \001(\0132\023.common.PageQueryVO\022\014\n\004name" +
"\030\002 \001(\t\022\014\n\004code\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022\017\n\007pa" +
"perId\030\005 \001(\003\"\226\001\n\013TaskSetting\022\017\n\007taskIds\030\001" +
" \003(\003\022&\n\005group\030\002 \003(\0132\027.race.TaskSetting.G" +
"roup\032N\n\005Group\022\017\n\007taskIds\030\001 \003(\003\022&\n\005group\030" +
"\002 \003(\0132\027.race.TaskSetting.Group\022\014\n\004name\030\003" +
" \001(\tB\033\n\031club.joylink.rtss.vo.raceb\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -6104,7 +6469,7 @@ public final class RaceModule {
internal_static_race_RaceModuleCreateVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RaceModuleCreateVO_descriptor,
new java.lang.String[] { "Name", "Code", "Desc", "PaperId", });
new java.lang.String[] { "Id", "Name", "Code", "Desc", "PaperId", "TaskSetting", "Duration", });
internal_static_race_RaceModuleQueryVO_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_race_RaceModuleQueryVO_fieldAccessorTable = new

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: race/race_paper.proto
// source: race_paper.proto
package club.joylink.rtss.vo.race;
@ -2664,16 +2664,17 @@ public final class RacePaper {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025race/race_paper.proto\022\004race\032\021modify_in" +
"fo.proto\032\020page_query.proto\032\021race_season." +
"proto\"\201\001\n\013RacePaperVO\022\n\n\002id\030\001 \001(\003\022\014\n\004nam" +
"e\030\002 \001(\t\022\014\n\004desc\030\003 \001(\t\022 \n\006season\030\004 \001(\0132\020." +
"race.RaceSeason\022(\n\nmodifyInfo\030\005 \001(\0132\024.co" +
"mmon.ModifyInfoVO\"A\n\021RacePaperCreateVO\022\014" +
"\n\004name\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t\022\020\n\010seasonId\030\003" +
" \001(\003\"C\n\020RacePaperQueryVO\022!\n\004page\030\001 \001(\0132\023" +
".common.PageQueryVO\022\014\n\004name\030\002 \001(\tB\033\n\031clu" +
"b.joylink.rtss.vo.raceb\006proto3"
"\n\020race_paper.proto\022\004race\032\030common/modify_" +
"info.proto\032\027common/page_query.proto\032\026rac" +
"e/race_season.proto\"\201\001\n\013RacePaperVO\022\n\n\002i" +
"d\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\014\n\004desc\030\003 \001(\t\022 \n\006s" +
"eason\030\004 \001(\0132\020.race.RaceSeason\022(\n\nmodifyI" +
"nfo\030\005 \001(\0132\024.common.ModifyInfoVO\"A\n\021RaceP" +
"aperCreateVO\022\014\n\004name\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t" +
"\022\020\n\010seasonId\030\003 \001(\003\"C\n\020RacePaperQueryVO\022!" +
"\n\004page\030\001 \001(\0132\023.common.PageQueryVO\022\014\n\004nam" +
"e\030\002 \001(\tB\033\n\031club.joylink.rtss.vo.raceb\006pr" +
"oto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: race/race_scene.proto
// source: race_scene.proto
package club.joylink.rtss.vo.race;
@ -1109,24 +1109,30 @@ public final class RaceSceneOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1;</code>
* <code>int64 id = 1;</code>
* @return The id.
*/
long getId();
/**
* <code>string name = 2;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The type.
*/
club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type getType();
@ -1168,11 +1174,22 @@ public final class RaceSceneOuterClass {
club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO.class, club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
* <code>int64 id = 1;</code>
* @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_ = "";
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The name.
*/
@java.lang.Override
@ -1189,7 +1206,7 @@ public final class RaceSceneOuterClass {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
@java.lang.Override
@ -1207,17 +1224,17 @@ public final class RaceSceneOuterClass {
}
}
public static final int TYPE_FIELD_NUMBER = 2;
public static final int TYPE_FIELD_NUMBER = 3;
private int type_ = 0;
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The type.
*/
@java.lang.Override public club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type getType() {
@ -1239,11 +1256,14 @@ public final class RaceSceneOuterClass {
@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, 1, name_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (type_ != club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type.Unknown.getNumber()) {
output.writeEnum(2, type_);
output.writeEnum(3, type_);
}
getUnknownFields().writeTo(output);
}
@ -1254,12 +1274,16 @@ public final class RaceSceneOuterClass {
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(1, name_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (type_ != club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type.Unknown.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
.computeEnumSize(3, type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@ -1276,6 +1300,8 @@ public final class RaceSceneOuterClass {
}
club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO other = (club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (type_ != other.type_) return false;
@ -1290,6 +1316,9 @@ public final class RaceSceneOuterClass {
}
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) + TYPE_FIELD_NUMBER;
@ -1425,6 +1454,7 @@ public final class RaceSceneOuterClass {
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
name_ = "";
type_ = 0;
return this;
@ -1461,9 +1491,12 @@ public final class RaceSceneOuterClass {
private void buildPartial0(club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
}
}
@ -1480,9 +1513,12 @@ public final class RaceSceneOuterClass {
public Builder mergeFrom(club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO other) {
if (other == club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceSceneCreateVO.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.type_ != 0) {
@ -1514,16 +1550,21 @@ public final class RaceSceneOuterClass {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
type_ = input.readEnum();
} // case 8
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 16
} // case 18
case 24: {
type_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -1541,9 +1582,41 @@ public final class RaceSceneOuterClass {
}
private int bitField0_;
private long id_ ;
/**
* <code>int64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* <code>int64 id = 1;</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int64 id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The name.
*/
public java.lang.String getName() {
@ -1559,7 +1632,7 @@ public final class RaceSceneOuterClass {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
@ -1576,7 +1649,7 @@ public final class RaceSceneOuterClass {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @param value The name to set.
* @return This builder for chaining.
*/
@ -1584,22 +1657,22 @@ public final class RaceSceneOuterClass {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
@ -1608,32 +1681,32 @@ public final class RaceSceneOuterClass {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int type_ = 0;
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return The type.
*/
@java.lang.Override
@ -1642,7 +1715,7 @@ public final class RaceSceneOuterClass {
return result == null ? club.joylink.rtss.vo.race.RaceSceneOuterClass.RaceScene.Type.UNRECOGNIZED : result;
}
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @param value The type to set.
* @return This builder for chaining.
*/
@ -1650,17 +1723,17 @@ public final class RaceSceneOuterClass {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.race.RaceScene.Type type = 2;</code>
* <code>.race.RaceScene.Type type = 3;</code>
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
@ -4160,21 +4233,21 @@ public final class RaceSceneOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025race/race_scene.proto\022\004race\032\021modify_in" +
"fo.proto\032\020page_query.proto\"\221\001\n\013RaceScene" +
"VO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\"\n\004type\030\003 \001" +
"(\0162\024.race.RaceScene.Type\022\032\n\005scene\030\004 \001(\0132" +
"\013.race.Scene\022(\n\nmodifyInfo\030\005 \001(\0132\024.commo" +
"n.ModifyInfoVO\"E\n\021RaceSceneCreateVO\022\014\n\004n" +
"ame\030\001 \001(\t\022\"\n\004type\030\002 \001(\0162\024.race.RaceScene" +
".Type\"g\n\020RaceSceneQueryVO\022!\n\004page\030\001 \001(\0132" +
"\023.common.PageQueryVO\022\014\n\004name\030\002 \001(\t\022\"\n\004ty" +
"pe\030\003 \001(\0162\024.race.RaceScene.Type\"H\n\005Scene\022" +
"\013\n\003url\030\001 \001(\t\0222\n\021storageSimulation\030\002 \001(\0132" +
"\027.race.StorageSimulation\"\023\n\021StorageSimul" +
"ation\"5\n\tRaceScene\"(\n\004Type\022\013\n\007Unknown\020\000\022" +
"\t\n\005Local\020\001\022\010\n\004Link\020\002B\033\n\031club.joylink.rts" +
"s.vo.raceb\006proto3"
"\n\020race_scene.proto\022\004race\032\030common/modify_" +
"info.proto\032\027common/page_query.proto\"\221\001\n\013" +
"RaceSceneVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\"\n" +
"\004type\030\003 \001(\0162\024.race.RaceScene.Type\022\032\n\005sce" +
"ne\030\004 \001(\0132\013.race.Scene\022(\n\nmodifyInfo\030\005 \001(" +
"\0132\024.common.ModifyInfoVO\"Q\n\021RaceSceneCrea" +
"teVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\"\n\004type\030\003" +
" \001(\0162\024.race.RaceScene.Type\"g\n\020RaceSceneQ" +
"ueryVO\022!\n\004page\030\001 \001(\0132\023.common.PageQueryV" +
"O\022\014\n\004name\030\002 \001(\t\022\"\n\004type\030\003 \001(\0162\024.race.Rac" +
"eScene.Type\"H\n\005Scene\022\013\n\003url\030\001 \001(\t\0222\n\021sto" +
"rageSimulation\030\002 \001(\0132\027.race.StorageSimul" +
"ation\"\023\n\021StorageSimulation\"5\n\tRaceScene\"" +
"(\n\004Type\022\013\n\007Unknown\020\000\022\t\n\005Local\020\001\022\010\n\004Link\020" +
"\002B\033\n\031club.joylink.rtss.vo.raceb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -4193,7 +4266,7 @@ public final class RaceSceneOuterClass {
internal_static_race_RaceSceneCreateVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RaceSceneCreateVO_descriptor,
new java.lang.String[] { "Name", "Type", });
new java.lang.String[] { "Id", "Name", "Type", });
internal_static_race_RaceSceneQueryVO_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_race_RaceSceneQueryVO_fieldAccessorTable = new

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: race/race_scoring_rule.proto
// source: race_scoring_rule.proto
package club.joylink.rtss.vo.race;
@ -1004,12 +1004,18 @@ public final class RaceScoringRule {
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1;</code>
* <code>int64 id = 1;</code>
* @return The id.
*/
long getId();
/**
* <code>string name = 2;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
@ -1020,7 +1026,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return Whether the rule field is set.
*/
boolean hasRule();
@ -1029,7 +1035,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return The rule.
*/
club.joylink.rtss.vo.race.RaceScoringRule.Rule getRule();
@ -1038,7 +1044,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
club.joylink.rtss.vo.race.RaceScoringRule.RuleOrBuilder getRuleOrBuilder();
}
@ -1078,11 +1084,22 @@ public final class RaceScoringRule {
club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO.class, club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
* <code>int64 id = 1;</code>
* @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_ = "";
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The name.
*/
@java.lang.Override
@ -1099,7 +1116,7 @@ public final class RaceScoringRule {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
@java.lang.Override
@ -1117,14 +1134,14 @@ public final class RaceScoringRule {
}
}
public static final int RULE_FIELD_NUMBER = 2;
public static final int RULE_FIELD_NUMBER = 3;
private club.joylink.rtss.vo.race.RaceScoringRule.Rule rule_;
/**
* <pre>
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return Whether the rule field is set.
*/
@java.lang.Override
@ -1136,7 +1153,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return The rule.
*/
@java.lang.Override
@ -1148,7 +1165,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
@java.lang.Override
public club.joylink.rtss.vo.race.RaceScoringRule.RuleOrBuilder getRuleOrBuilder() {
@ -1169,11 +1186,14 @@ public final class RaceScoringRule {
@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, 1, name_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (rule_ != null) {
output.writeMessage(2, getRule());
output.writeMessage(3, getRule());
}
getUnknownFields().writeTo(output);
}
@ -1184,12 +1204,16 @@ public final class RaceScoringRule {
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(1, name_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (rule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRule());
.computeMessageSize(3, getRule());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@ -1206,6 +1230,8 @@ public final class RaceScoringRule {
}
club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO other = (club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (hasRule() != other.hasRule()) return false;
@ -1224,6 +1250,9 @@ public final class RaceScoringRule {
}
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();
if (hasRule()) {
@ -1361,6 +1390,7 @@ public final class RaceScoringRule {
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
name_ = "";
rule_ = null;
if (ruleBuilder_ != null) {
@ -1401,9 +1431,12 @@ public final class RaceScoringRule {
private void buildPartial0(club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rule_ = ruleBuilder_ == null
? rule_
: ruleBuilder_.build();
@ -1422,9 +1455,12 @@ public final class RaceScoringRule {
public Builder mergeFrom(club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO other) {
if (other == club.joylink.rtss.vo.race.RaceScoringRule.RaceScoringRuleCreateVO.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasRule()) {
@ -1456,18 +1492,23 @@ public final class RaceScoringRule {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 10
} // case 8
case 18: {
input.readMessage(
getRuleFieldBuilder().getBuilder(),
extensionRegistry);
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getRuleFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -1485,9 +1526,41 @@ public final class RaceScoringRule {
}
private int bitField0_;
private long id_ ;
/**
* <code>int64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* <code>int64 id = 1;</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int64 id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The name.
*/
public java.lang.String getName() {
@ -1503,7 +1576,7 @@ public final class RaceScoringRule {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
@ -1520,7 +1593,7 @@ public final class RaceScoringRule {
}
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @param value The name to set.
* @return This builder for chaining.
*/
@ -1528,22 +1601,22 @@ public final class RaceScoringRule {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string name = 1;</code>
* <code>string name = 2;</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
@ -1552,7 +1625,7 @@ public final class RaceScoringRule {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@ -1565,18 +1638,18 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return Whether the rule field is set.
*/
public boolean hasRule() {
return ((bitField0_ & 0x00000002) != 0);
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <pre>
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
* @return The rule.
*/
public club.joylink.rtss.vo.race.RaceScoringRule.Rule getRule() {
@ -1591,7 +1664,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public Builder setRule(club.joylink.rtss.vo.race.RaceScoringRule.Rule value) {
if (ruleBuilder_ == null) {
@ -1602,7 +1675,7 @@ public final class RaceScoringRule {
} else {
ruleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@ -1611,7 +1684,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public Builder setRule(
club.joylink.rtss.vo.race.RaceScoringRule.Rule.Builder builderForValue) {
@ -1620,7 +1693,7 @@ public final class RaceScoringRule {
} else {
ruleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@ -1629,11 +1702,11 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public Builder mergeRule(club.joylink.rtss.vo.race.RaceScoringRule.Rule value) {
if (ruleBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
if (((bitField0_ & 0x00000004) != 0) &&
rule_ != null &&
rule_ != club.joylink.rtss.vo.race.RaceScoringRule.Rule.getDefaultInstance()) {
getRuleBuilder().mergeFrom(value);
@ -1643,7 +1716,7 @@ public final class RaceScoringRule {
} else {
ruleBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@ -1652,10 +1725,10 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public Builder clearRule() {
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000004);
rule_ = null;
if (ruleBuilder_ != null) {
ruleBuilder_.dispose();
@ -1669,10 +1742,10 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public club.joylink.rtss.vo.race.RaceScoringRule.Rule.Builder getRuleBuilder() {
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return getRuleFieldBuilder().getBuilder();
}
@ -1681,7 +1754,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
public club.joylink.rtss.vo.race.RaceScoringRule.RuleOrBuilder getRuleOrBuilder() {
if (ruleBuilder_ != null) {
@ -1696,7 +1769,7 @@ public final class RaceScoringRule {
*非必填
* </pre>
*
* <code>.race.Rule rule = 2;</code>
* <code>.race.Rule rule = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
club.joylink.rtss.vo.race.RaceScoringRule.Rule, club.joylink.rtss.vo.race.RaceScoringRule.Rule.Builder, club.joylink.rtss.vo.race.RaceScoringRule.RuleOrBuilder>
@ -4023,18 +4096,19 @@ public final class RaceScoringRule {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034race/race_scoring_rule.proto\022\004race\032\021mo" +
"dify_info.proto\032\020page_query.proto\"q\n\021Rac" +
"eScoringRuleVO\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t" +
"\022\030\n\004rule\030\003 \001(\0132\n.race.Rule\022(\n\nmodifyInfo" +
"\030\004 \001(\0132\024.common.ModifyInfoVO\"A\n\027RaceScor" +
"ingRuleCreateVO\022\014\n\004name\030\001 \001(\t\022\030\n\004rule\030\002 " +
"\001(\0132\n.race.Rule\"I\n\026RaceScoringRuleQueryV" +
"O\022!\n\004page\030\001 \001(\0132\023.common.PageQueryVO\022\014\n\004" +
"name\030\002 \001(\t\"`\n\004Rule\022\036\n\005units\030\001 \003(\0132\017.race" +
".Rule.Unit\0328\n\004Unit\022\014\n\004text\030\001 \001(\t\022\023\n\013scen" +
"eStepId\030\002 \001(\r\022\r\n\005score\030\003 \001(\rB\033\n\031club.joy" +
"link.rtss.vo.raceb\006proto3"
"\n\027race_scoring_rule.proto\022\004race\032\030common/" +
"modify_info.proto\032\027common/page_query.pro" +
"to\"q\n\021RaceScoringRuleVO\022\n\n\002id\030\001 \001(\003\022\014\n\004n" +
"ame\030\002 \001(\t\022\030\n\004rule\030\003 \001(\0132\n.race.Rule\022(\n\nm" +
"odifyInfo\030\004 \001(\0132\024.common.ModifyInfoVO\"M\n" +
"\027RaceScoringRuleCreateVO\022\n\n\002id\030\001 \001(\003\022\014\n\004" +
"name\030\002 \001(\t\022\030\n\004rule\030\003 \001(\0132\n.race.Rule\"I\n\026" +
"RaceScoringRuleQueryVO\022!\n\004page\030\001 \001(\0132\023.c" +
"ommon.PageQueryVO\022\014\n\004name\030\002 \001(\t\"`\n\004Rule\022" +
"\036\n\005units\030\001 \003(\0132\017.race.Rule.Unit\0328\n\004Unit\022" +
"\014\n\004text\030\001 \001(\t\022\023\n\013sceneStepId\030\002 \001(\r\022\r\n\005sc" +
"ore\030\003 \001(\rB\033\n\031club.joylink.rtss.vo.raceb\006" +
"proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -4053,7 +4127,7 @@ public final class RaceScoringRule {
internal_static_race_RaceScoringRuleCreateVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RaceScoringRuleCreateVO_descriptor,
new java.lang.String[] { "Name", "Rule", });
new java.lang.String[] { "Id", "Name", "Rule", });
internal_static_race_RaceScoringRuleQueryVO_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_race_RaceScoringRuleQueryVO_fieldAccessorTable = new

View File

@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: race/race_season.proto
// source: race_season.proto
package club.joylink.rtss.vo.race;
@ -1169,24 +1169,30 @@ public final class RaceSeasonOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>string code = 1;</code>
* <code>int64 id = 1;</code>
* @return The id.
*/
long getId();
/**
* <code>string code = 2;</code>
* @return The code.
*/
java.lang.String getCode();
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return The bytes for code.
*/
com.google.protobuf.ByteString
getCodeBytes();
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The enum numeric value on the wire for group.
*/
int getGroupValue();
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The group.
*/
club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group getGroup();
@ -1196,7 +1202,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The term.
*/
java.lang.String getTerm();
@ -1205,7 +1211,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The bytes for term.
*/
com.google.protobuf.ByteString
@ -1249,11 +1255,22 @@ public final class RaceSeasonOuterClass {
club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO.class, club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
* <code>int64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int CODE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object code_ = "";
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return The code.
*/
@java.lang.Override
@ -1270,7 +1287,7 @@ public final class RaceSeasonOuterClass {
}
}
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return The bytes for code.
*/
@java.lang.Override
@ -1288,17 +1305,17 @@ public final class RaceSeasonOuterClass {
}
}
public static final int GROUP_FIELD_NUMBER = 2;
public static final int GROUP_FIELD_NUMBER = 3;
private int group_ = 0;
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The enum numeric value on the wire for group.
*/
@java.lang.Override public int getGroupValue() {
return group_;
}
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The group.
*/
@java.lang.Override public club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group getGroup() {
@ -1306,7 +1323,7 @@ public final class RaceSeasonOuterClass {
return result == null ? club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group.UNRECOGNIZED : result;
}
public static final int TERM_FIELD_NUMBER = 3;
public static final int TERM_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object term_ = "";
/**
@ -1314,7 +1331,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The term.
*/
@java.lang.Override
@ -1335,7 +1352,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The bytes for term.
*/
@java.lang.Override
@ -1367,14 +1384,17 @@ public final class RaceSeasonOuterClass {
@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(code_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_);
}
if (group_ != club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group.Unknown.getNumber()) {
output.writeEnum(2, group_);
output.writeEnum(3, group_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(term_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, term_);
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, term_);
}
getUnknownFields().writeTo(output);
}
@ -1385,15 +1405,19 @@ public final class RaceSeasonOuterClass {
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_);
}
if (group_ != club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group.Unknown.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, group_);
.computeEnumSize(3, group_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(term_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, term_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, term_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@ -1410,6 +1434,8 @@ public final class RaceSeasonOuterClass {
}
club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO other = (club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO) obj;
if (getId()
!= other.getId()) return false;
if (!getCode()
.equals(other.getCode())) return false;
if (group_ != other.group_) return false;
@ -1426,6 +1452,9 @@ public final class RaceSeasonOuterClass {
}
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) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
hash = (37 * hash) + GROUP_FIELD_NUMBER;
@ -1563,6 +1592,7 @@ public final class RaceSeasonOuterClass {
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
code_ = "";
group_ = 0;
term_ = "";
@ -1600,12 +1630,15 @@ public final class RaceSeasonOuterClass {
private void buildPartial0(club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.code_ = code_;
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.group_ = group_;
result.code_ = code_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.group_ = group_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.term_ = term_;
}
}
@ -1622,9 +1655,12 @@ public final class RaceSeasonOuterClass {
public Builder mergeFrom(club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO other) {
if (other == club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeasonCreateVO.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getCode().isEmpty()) {
code_ = other.code_;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.group_ != 0) {
@ -1632,7 +1668,7 @@ public final class RaceSeasonOuterClass {
}
if (!other.getTerm().isEmpty()) {
term_ = other.term_;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@ -1661,21 +1697,26 @@ public final class RaceSeasonOuterClass {
case 0:
done = true;
break;
case 10: {
code_ = input.readStringRequireUtf8();
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
group_ = input.readEnum();
} // case 8
case 18: {
code_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
term_ = input.readStringRequireUtf8();
} // case 18
case 24: {
group_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 26
} // case 24
case 34: {
term_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@ -1693,9 +1734,41 @@ public final class RaceSeasonOuterClass {
}
private int bitField0_;
private long id_ ;
/**
* <code>int64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* <code>int64 id = 1;</code>
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int64 id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object code_ = "";
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return The code.
*/
public java.lang.String getCode() {
@ -1711,7 +1784,7 @@ public final class RaceSeasonOuterClass {
}
}
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
@ -1728,7 +1801,7 @@ public final class RaceSeasonOuterClass {
}
}
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @param value The code to set.
* @return This builder for chaining.
*/
@ -1736,22 +1809,22 @@ public final class RaceSeasonOuterClass {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
code_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
bitField0_ = (bitField0_ & ~0x00000001);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string code = 1;</code>
* <code>string code = 2;</code>
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
@ -1760,32 +1833,32 @@ public final class RaceSeasonOuterClass {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
code_ = value;
bitField0_ |= 0x00000001;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int group_ = 0;
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The enum numeric value on the wire for group.
*/
@java.lang.Override public int getGroupValue() {
return group_;
}
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @param value The enum numeric value on the wire for group to set.
* @return This builder for chaining.
*/
public Builder setGroupValue(int value) {
group_ = value;
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return The group.
*/
@java.lang.Override
@ -1794,7 +1867,7 @@ public final class RaceSeasonOuterClass {
return result == null ? club.joylink.rtss.vo.race.RaceSeasonOuterClass.RaceSeason.Group.UNRECOGNIZED : result;
}
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @param value The group to set.
* @return This builder for chaining.
*/
@ -1802,17 +1875,17 @@ public final class RaceSeasonOuterClass {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000004;
group_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.race.RaceSeason.Group group = 2;</code>
* <code>.race.RaceSeason.Group group = 3;</code>
* @return This builder for chaining.
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000004);
group_ = 0;
onChanged();
return this;
@ -1824,7 +1897,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The term.
*/
public java.lang.String getTerm() {
@ -1844,7 +1917,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return The bytes for term.
*/
public com.google.protobuf.ByteString
@ -1865,7 +1938,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @param value The term to set.
* @return This builder for chaining.
*/
@ -1873,7 +1946,7 @@ public final class RaceSeasonOuterClass {
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
term_ = value;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@ -1882,12 +1955,12 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @return This builder for chaining.
*/
public Builder clearTerm() {
term_ = getDefaultInstance().getTerm();
bitField0_ = (bitField0_ & ~0x00000004);
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@ -1896,7 +1969,7 @@ public final class RaceSeasonOuterClass {
*非必填
* </pre>
*
* <code>string term = 3;</code>
* <code>string term = 4;</code>
* @param value The bytes for term to set.
* @return This builder for chaining.
*/
@ -1905,7 +1978,7 @@ public final class RaceSeasonOuterClass {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
term_ = value;
bitField0_ |= 0x00000004;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@ -3469,19 +3542,20 @@ public final class RaceSeasonOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026race/race_season.proto\022\004race\032\021modify_i" +
"nfo.proto\032\020page_query.proto\"\207\001\n\014RaceSeas" +
"onVO\022\n\n\002id\030\001 \001(\003\022\014\n\004code\030\002 \001(\t\022%\n\005group\030" +
"\003 \001(\0162\026.race.RaceSeason.Group\022\014\n\004term\030\004 " +
"\001(\t\022(\n\nmodifyInfo\030\005 \001(\0132\024.common.ModifyI" +
"nfoVO\"W\n\022RaceSeasonCreateVO\022\014\n\004code\030\001 \001(" +
"\t\022%\n\005group\030\002 \001(\0162\026.race.RaceSeason.Group" +
"\022\014\n\004term\030\003 \001(\t\"y\n\021RaceSeasonQueryVO\022!\n\004p" +
"age\030\001 \001(\0132\023.common.PageQueryVO\022\014\n\004code\030\002" +
" \001(\t\022%\n\005group\030\003 \001(\0162\026.race.RaceSeason.Gr" +
"oup\022\014\n\004term\030\004 \001(\t\"2\n\nRaceSeason\"$\n\005Group" +
"\022\013\n\007Unknown\020\000\022\006\n\002ZZ\020\001\022\006\n\002GZ\020\002B\033\n\031club.jo" +
"ylink.rtss.vo.raceb\006proto3"
"\n\021race_season.proto\022\004race\032\030common/modify" +
"_info.proto\032\027common/page_query.proto\"\207\001\n" +
"\014RaceSeasonVO\022\n\n\002id\030\001 \001(\003\022\014\n\004code\030\002 \001(\t\022" +
"%\n\005group\030\003 \001(\0162\026.race.RaceSeason.Group\022\014" +
"\n\004term\030\004 \001(\t\022(\n\nmodifyInfo\030\005 \001(\0132\024.commo" +
"n.ModifyInfoVO\"c\n\022RaceSeasonCreateVO\022\n\n\002" +
"id\030\001 \001(\003\022\014\n\004code\030\002 \001(\t\022%\n\005group\030\003 \001(\0162\026." +
"race.RaceSeason.Group\022\014\n\004term\030\004 \001(\t\"y\n\021R" +
"aceSeasonQueryVO\022!\n\004page\030\001 \001(\0132\023.common." +
"PageQueryVO\022\014\n\004code\030\002 \001(\t\022%\n\005group\030\003 \001(\016" +
"2\026.race.RaceSeason.Group\022\014\n\004term\030\004 \001(\t\"2" +
"\n\nRaceSeason\"$\n\005Group\022\013\n\007Unknown\020\000\022\006\n\002ZZ" +
"\020\001\022\006\n\002GZ\020\002B\033\n\031club.joylink.rtss.vo.raceb" +
"\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@ -3500,7 +3574,7 @@ public final class RaceSeasonOuterClass {
internal_static_race_RaceSeasonCreateVO_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_race_RaceSeasonCreateVO_descriptor,
new java.lang.String[] { "Code", "Group", "Term", });
new java.lang.String[] { "Id", "Code", "Group", "Term", });
internal_static_race_RaceSeasonQueryVO_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_race_RaceSeasonQueryVO_fieldAccessorTable = new

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ public class GenerateProtoBufUtil {
public GenerateProtoBufUtil(String rootPath, boolean pullMessage) {
this.pullMessage = pullMessage;
String sourcePath = String.join(File.separator, rootPath, "rtss-message", "protos");
String sourcePath = String.join(File.separator, rootPath, "rtss-message", "proto");
this.outPath = String.join(File.separator, rootPath, "src", "main", "java");
this.protoFilePath = new File(sourcePath);
@ -95,7 +95,7 @@ public class GenerateProtoBufUtil {
}
public static void main(String[] args) throws IOException {
GenerateProtoBufUtil gu = new GenerateProtoBufUtil(System.getProperty("user.dir"), true);
GenerateProtoBufUtil gu = new GenerateProtoBufUtil(System.getProperty("user.dir"), false);
gu.execCommand();
}
}