Skip to content

Commit 8f643e7

Browse files
mustard-mhjeanp413
andauthored
[papi] add support for java and kotlin (#19868)
Co-authored-by: Jean Pierre <[email protected]>
1 parent 92d622f commit 8f643e7

File tree

147 files changed

+332429
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+332429
-156
lines changed

components/public-api/buf.gen.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ plugins:
2626
out: typescript/src
2727
opt: target=ts
2828
path: typescript/node_modules/.bin/protoc-gen-connect-es
29+
30+
- plugin: buf.build/connectrpc/kotlin
31+
out: java/src/main/java
32+
- plugin: buf.build/protocolbuffers/java
33+
out: java/src/main/java

components/public-api/generate.sh

+3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ buf breaking --against "https://github.com/gitpod-io/gitpod.git#branch=main,subd
3030

3131
# Remove generated files, so they are re-created
3232
rm -rf go/experimental
33+
rm -rf java/src/main/java
3334

3435
protoc_buf_generate
3536

3637
update_license
3738

39+
git ls-files -- 'java/**/*.java' 'java/**/*.kt' | xargs pre-commit run trailing-whitespace --files || true
40+
3841
# Run end-of-file-fixer
3942
git ls-files -- 'typescript/*.ts' | xargs pre-commit run end-of-file-fixer --files || true
4043

components/public-api/gitpod/experimental/v1/dummy.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
// HelloService is a dummy service that says hello. It is used for reliability
89
// testing.

components/public-api/gitpod/experimental/v1/editor_service.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
service EditorService {
89
rpc ListEditorOptions(ListEditorOptionsRequest) returns (ListEditorOptionsResponse) {}

components/public-api/gitpod/experimental/v1/ide_client.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.experimental.v1;
55
import "gitpod/experimental/v1/workspaces.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
8+
option java_package = "io.gitpod.publicapi.experimental.v1";
89

910
service IDEClientService {
1011
// SendHeartbeat sends a clientheartbeat signal for a running workspace.

components/public-api/gitpod/experimental/v1/identityprovider.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
service IdentityProviderService {
89
// GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken)

components/public-api/gitpod/experimental/v1/oidc.proto

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "gitpod/experimental/v1/pagination.proto";
66
import "google/protobuf/timestamp.proto";
77

88
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
9+
option java_package = "io.gitpod.publicapi.experimental.v1";
910

1011
// Configuration of an OpenID client.
1112
//

components/public-api/gitpod/experimental/v1/pagination.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
message Pagination {
89
// Page size is the maximum number of results to retrieve per page.

components/public-api/gitpod/experimental/v1/projects.proto

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "gitpod/experimental/v1/pagination.proto";
66
import "google/protobuf/timestamp.proto";
77

88
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
9+
option java_package = "io.gitpod.publicapi.experimental.v1";
910

1011
message Project {
1112
// ID is the unique identifier for the project.

components/public-api/gitpod/experimental/v1/scm.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
service SCMService {
89
// GetSuggestedRepoURLs returns a list of suggested repositories to open for

components/public-api/gitpod/experimental/v1/stats.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.experimental.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
6+
option java_package = "io.gitpod.publicapi.experimental.v1";
67

78
service StatsService {
89
// Retrieves the current user stats

components/public-api/gitpod/experimental/v1/teams.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.experimental.v1;
55
import "google/protobuf/timestamp.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
8+
option java_package = "io.gitpod.publicapi.experimental.v1";
89

910
message Team {
1011
// id is a UUID of the Team

components/public-api/gitpod/experimental/v1/tokens.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "google/protobuf/field_mask.proto";
77
import "google/protobuf/timestamp.proto";
88

99
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
10+
option java_package = "io.gitpod.publicapi.experimental.v1";
1011

1112
// PersonalAccessToken represents details of an access token for personal use.
1213
message PersonalAccessToken {

components/public-api/gitpod/experimental/v1/user.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.experimental.v1;
55
import "google/protobuf/timestamp.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
8+
option java_package = "io.gitpod.publicapi.experimental.v1";
89

910
message User {
1011
// id is a UUID of the user

components/public-api/gitpod/experimental/v1/workspaces.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "google/protobuf/field_mask.proto";
77
import "google/protobuf/timestamp.proto";
88

99
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/experimental/v1";
10+
option java_package = "io.gitpod.publicapi.experimental.v1";
1011

1112
service WorkspacesService {
1213
// ListWorkspaces enumerates all workspaces belonging to the authenticated user.

components/public-api/gitpod/v1/authprovider.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.v1;
55
import "gitpod/v1/pagination.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
8+
option java_package = "io.gitpod.publicapi.v1";
89

910
service AuthProviderService {
1011
// CreateAuthProvider creates a new auth provider.

components/public-api/gitpod/v1/configuration.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "gitpod/v1/sorting.proto";
77
import "google/protobuf/timestamp.proto";
88

99
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
10+
option java_package = "io.gitpod.publicapi.v1";
1011

1112
message Configuration {
1213
string id = 1;

components/public-api/gitpod/v1/editor.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
6+
option java_package = "io.gitpod.publicapi.v1";
67

78
message EditorReference {
89
string name = 1;

components/public-api/gitpod/v1/envvar.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.v1;
55
import "gitpod/v1/pagination.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
8+
option java_package = "io.gitpod.publicapi.v1";
89

910
service EnvironmentVariableService {
1011
// ListUserEnvironmentVariables returns all environment variables for the

components/public-api/gitpod/v1/error.proto

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gitpod.v1;
55
import "google/protobuf/descriptor.proto";
66

77
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
8+
option java_package = "io.gitpod.publicapi.v1";
89

910
// details for PERMISSION_DENIED status code
1011
message PermissionDeniedDetails {

components/public-api/gitpod/v1/installation.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "gitpod/v1/sorting.proto";
77
import "google/protobuf/timestamp.proto";
88

99
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
10+
option java_package = "io.gitpod.publicapi.v1";
1011

1112
service InstallationService {
1213
// GetInstallationWorkspaceDefaultImage returns the default image for current

components/public-api/gitpod/v1/organization.proto

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "gitpod/v1/workspace.proto";
77
import "google/protobuf/timestamp.proto";
88

99
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
10+
option java_package = "io.gitpod.publicapi.v1";
1011

1112
message Organization {
1213
string id = 1;

components/public-api/gitpod/v1/pagination.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
6+
option java_package = "io.gitpod.publicapi.v1";
67

78
message PaginationRequest {
89
// Page size is the maximum number of results to retrieve per page.

components/public-api/gitpod/v1/prebuild.proto

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import "gitpod/v1/sorting.proto";
88
import "google/protobuf/timestamp.proto";
99

1010
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
11+
option java_package = "io.gitpod.publicapi.v1";
1112

1213
service PrebuildService {
1314
rpc StartPrebuild(StartPrebuildRequest) returns (StartPrebuildResponse) {}

components/public-api/gitpod/v1/scm.proto

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "gitpod/v1/pagination.proto";
66
import "google/protobuf/timestamp.proto";
77

88
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
9+
option java_package = "io.gitpod.publicapi.v1";
910

1011
service SCMService {
1112
// SearchSCMTokens allows clients to retrieve SCM tokens based on the

components/public-api/gitpod/v1/sorting.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
6+
option java_package = "io.gitpod.publicapi.v1";
67

78
enum SortOrder {
89
SORT_ORDER_UNSPECIFIED = 0;

components/public-api/gitpod/v1/ssh.proto

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "gitpod/v1/pagination.proto";
66
import "google/protobuf/timestamp.proto";
77

88
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
9+
option java_package = "io.gitpod.publicapi.v1";
910

1011
service SSHService {
1112
// ListSSHPublicKeys returns all the ssh public keys for the

components/public-api/gitpod/v1/token.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
6+
option java_package = "io.gitpod.publicapi.v1";
67

78
service TokenService {
89
// CreateUserToken creates a new temporary access token for the specified user.

components/public-api/gitpod/v1/user.proto

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import "google/protobuf/field_mask.proto";
1010
import "google/protobuf/timestamp.proto";
1111

1212
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
13+
option java_package = "io.gitpod.publicapi.v1";
1314

1415
service UserService {
1516
// GetAuthenticatedUser allows to retrieve the current user.

components/public-api/gitpod/v1/verification.proto

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package gitpod.v1;
44

55
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
6+
option java_package = "io.gitpod.publicapi.v1";
67

78
service VerificationService {
89
// SendPhoneNumberVerificationToken sends a verification token to the

components/public-api/gitpod/v1/workspace.proto

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import "google/protobuf/duration.proto";
99
import "google/protobuf/timestamp.proto";
1010

1111
option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
12+
option java_package = "io.gitpod.publicapi.v1";
1213

1314
service WorkspaceService {
1415
// GetWorkspace returns a single workspace.

components/public-api/go/experimental/v1/dummy.pb.go

+9-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/experimental/v1/editor_service.pb.go

+8-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/experimental/v1/ide_client.pb.go

+8-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/experimental/v1/identityprovider.pb.go

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/experimental/v1/oidc.pb.go

+8-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/experimental/v1/pagination.pb.go

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)