Repository navigation
[chore]: Replaced Hand-written DTOs with Protobuff #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yash-khaitan
merged 22 commits into
main
from
Introducing-protobuff-for-autoGeneration-of-DTO
Nov 15, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
fa7075a
[chore]: Replaced Hand-written DTOs with Protobuff
yash-khaitan d2dc637
removed Mapperconfig
yash-khaitan 0df2710
formatting
yash-khaitan dc01e9e
Revert "formatting"
yash-khaitan 22195f4
exclude target folder from checkstyles
yash-khaitan 758916e
review comments
yash-khaitan a4ba8c4
review comments: Change package for generated proto calsses. and others
yash-khaitan 01300c2
documentations
yash-khaitan 8c0ac8d
update .gitignore
yash-khaitan f598136
changes for rebase
yash-khaitan 0098c50
doc update
yash-khaitan 5a009b7
bazel update for protobuf
yash-khaitan e2cdabc
excluding generated files from checkstyle and JaCoCo
yash-khaitan 82f218f
update doc
yash-khaitan 289eabf
experimental (introducting Customizer for protobuf schema)
yash-khaitan e48b62f
openAPI spec and JSON formatting
yash-khaitan c2b3467
Updating ordering in openAPI spec
yash-khaitan 8461feb
fix for orderStage
yash-khaitan 577087f
JSON reponse converter and Dockerfile update
yash-khaitan c3caf22
changes for checkstyle failure
yash-khaitan 4454403
revert constuctor changes
yash-khaitan 1c64e44
added Started at and updated bazel to use mvn central repository
yash-khaitan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| filegroup( | ||
| name = "protobuf_files", | ||
| srcs = glob(["**/*.proto"]), | ||
| visibility = ["//visibility:public"], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| version: v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package definition.v1; | ||
|
|
||
| option java_package = "com.autobuild.pipeline.definiton.gen.dto"; | ||
| option java_multiple_files = true; | ||
|
|
||
| // option go_package = ""; | ||
| // go_multiple_files doesn't exist - Go always generates one file per proto file. | ||
|
|
||
| message Stage { | ||
| string id = 1; | ||
| string name = 2; | ||
| string script_type = 3; | ||
| string command = 4; | ||
| int32 stage_order = 5; | ||
| } | ||
|
|
||
| message Pipeline { | ||
| string id = 1; | ||
| string name = 2; | ||
| repeated Stage stages = 3; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| syntax = "proto3"; | ||
|
SuvabrataChowdhury marked this conversation as resolved.
Resolved
|
||
|
|
||
| package execution.v1; | ||
|
|
||
| import "google/protobuf/timestamp.proto"; | ||
|
|
||
| option java_package = "com.autobuild.pipeline.executor.gen.dto"; | ||
| option java_multiple_files = true; | ||
|
|
||
| // option go_package = ""; | ||
| // go_multiple_files doesn't exist - Go always generates one file per proto file. | ||
|
|
||
| enum PipelineExecutionState { | ||
| PIPELINE_WAITING = 0; // Pipeline is waiting to be executed. | ||
| PIPELINE_RUNNING = 1; // Pipeline execution has started. | ||
| PIPELINE_SUCCESS = 2; // Pipeline execution has finished and it succeeded. | ||
| PIPELINE_FAILED = 3; // Pipeline execution has finished and it failed. | ||
| } | ||
|
|
||
| enum StageExecutionState { | ||
| STAGE_WAITING = 0; // Stage is waiting to be executed. | ||
| STAGE_RUNNING = 1; // Stage execution has started. | ||
| STAGE_SUCCESS = 2; // Stage execution has finished and it succeeded. | ||
| STAGE_FAILED = 3; // Stage execution has finished and it failed. | ||
| STAGE_STOPPED = 4; // Stage execution stopped. | ||
| } | ||
|
|
||
| message StageBuild { | ||
| string id = 1; | ||
| string stage_id = 2; | ||
| string stage_name = 3; | ||
| StageExecutionState current_state = 4; | ||
| int32 stage_order = 5; | ||
| } | ||
|
|
||
| message PipelineBuild { | ||
| string id = 1; | ||
| string pipeline_id = 2; | ||
| string pipeline_name = 3; | ||
| PipelineExecutionState current_state = 4; | ||
| repeated StageBuild stage_builds = 5; | ||
| google.protobuf.Timestamp started_at = 6; | ||
| } | ||
|
|
||
| // A single line of output from a running stage, streamed back as it is produced. | ||
| message StageLog { | ||
| string stage_build_id = 1; | ||
| string line = 2; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"> | ||
| </settings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.