Fix message name casing in SamplingRate proto definition
Standardize the naming convention by changing `GetSamplingRateByIDRequest` to `GetSamplingRateByIdRequest`, using "Id" instead of "ID" for consistency with other proto message names across the codebase. Updated the corresponding handler to reference the corrected message name. This aligns with the established naming pattern and improves code consistency following the same convention applied in other proto definitions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5aeb54516c
commit
5ff972ebcb
|
|
@ -28,8 +28,8 @@ public class GetSamplingRateByIdHandler implements ActionHandler {
|
||||||
throws InvalidProtocolBufferException{
|
throws InvalidProtocolBufferException{
|
||||||
|
|
||||||
try{
|
try{
|
||||||
SamplingRateMessages.GetSamplingRateByIDRequest getByIdRequest =
|
SamplingRateMessages.GetSamplingRateByIdRequest getByIdRequest =
|
||||||
SamplingRateMessages.GetSamplingRateByIDRequest.parseFrom(requestPayload);
|
SamplingRateMessages.GetSamplingRateByIdRequest.parseFrom(requestPayload);
|
||||||
int id = getByIdRequest.getId();
|
int id = getByIdRequest.getId();
|
||||||
|
|
||||||
Optional<SamplingRate> samplingRateOpt = samplingRateService.getSamplingRateById(id);
|
Optional<SamplingRate> samplingRateOpt = samplingRateService.getSamplingRateById(id);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ message GetSamplingRatesResponse{
|
||||||
repeated SamplingRate samplingrates = 1;
|
repeated SamplingRate samplingrates = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetSamplingRateByIDRequest{
|
message GetSamplingRateByIdRequest{
|
||||||
int32 id =1;
|
int32 id =1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue